:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #111827;
  --ink-soft: #4b5563;
  --header: #0b1324;
  --line: #d7dde6;
  --cta: #f43c20;
  --cta-hover: #d9351c;
  --accent-soft: #ffe3de;
  --accent-deep: #b92d17;
  --container: 1240px;
  --container-pad: 16px;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

p {
  margin: 0;
  color: #1f2937;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-gap {
  padding: clamp(4rem, 8vw, 7.6rem) 0;
}

.section-kicker {
  margin: 0 0 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: #7c8796;
}

.section-head {
  margin-bottom: clamp(1.8rem, 3vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-cta {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

.btn-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--header);
}

.btn-outline-dark {
  border-color: #1f2937;
  color: #1f2937;
}

.btn-outline-dark:hover {
  background: #1f2937;
  color: #fff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(11, 19, 36, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.site-header.scrolled {
  background: rgba(11, 19, 36, 0.98);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: clamp(46px, 5vw, 62px);
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

.nav-links {
  position: absolute;
  top: calc(var(--header-height) + 8px);
  left: 4%;
  right: 4%;
  margin: 0;
  padding: 1rem;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  background: #0f1a31;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-open .nav-links {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.nav-links a {
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
}

.nav-cta {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-home {
  /* background handled by .hero-slider */
}

/* ── Hero Slideshow ── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* ── Hero Dots ── */
.hero-dots {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-realizace {
  background-image: url("images/realizace/pergoly-stani/pergola-1-1-1.webp");
}

.hero-velux {
  background-image: url("images/realizace/velux/velux-1-2-IMG_7351.webp");
}

.hero-about {
  background-image: url("images/realizace/pergoly-stani/pergola-1-10-IMG_8497.webp");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(6, 12, 24, 0.92) 18%, rgba(6, 12, 24, 0.58) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 100%;
  display: block;
}

.hero-copy h1 {
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.55);
}

.hero-content .section-kicker {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-copy p,
.hero-content > p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.value {
  background: #fff;
}

.value-grid {
  display: grid;
  gap: 1.5rem;
}

.value-content {
  display: grid;
  gap: 1rem;
}

.value-content p {
  max-width: 740px;
}

.value-number {
  border: 1px solid var(--line);
  background: #f7f9fc;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.value-number strong {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
}

.value-number span {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.services-highlight .value-content,
.services-highlight .value-number {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.services-highlight .value-content {
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.services-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.services-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.7rem;
  align-items: flex-start;
}

.services-list .material-symbols-outlined {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffd3cc;
  background: #fff1ee;
  color: var(--cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.services-list p {
  margin: 0;
  color: #374151;
}

.services-velux-box {
  background: linear-gradient(180deg, #fff2ef, #fff);
}

.velux-service .value-content,
.velux-service .value-number {
  border: 1px solid var(--line);
  background: #fff;
}

.velux-service .value-content {
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.velux-service .value-number {
  background: linear-gradient(180deg, #fff6f4, #fff);
}

.velux-service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.velux-service-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.7rem;
  align-items: flex-start;
}

.velux-service-list .material-symbols-outlined {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffd3cc;
  background: #fff1ee;
  color: var(--cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.velux-service-list p {
  margin: 0;
  color: #374151;
}

.projects {
  background: #f4f5f7;
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.project-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #e5e7eb;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

.project-meta {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.2rem;
}

.project-meta h3 {
  margin: 0;
}

.project-meta p {
  color: #4b5563;
}

.project-meta span {
  margin-top: 0.3rem;
  color: #7b8796;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-section {
  background: #fff;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.gallery-filter {
  border: 1px solid #d8dee8;
  background: #fff;
  color: #263241;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  border-color: var(--cta);
  background: var(--cta);
  color: #fff;
}

.realization-gallery {
  display: grid;
  gap: 1rem;
}

.gallery-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.gallery-card-count {
  color: #7b8796;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 2.4rem;
  border-radius: 4px;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e5e7eb;
}

.gallery-card-meta {
  padding: 0.8rem 0.9rem 0.95rem;
  display: grid;
  gap: 0.15rem;
}

.gallery-card-meta strong {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card-meta span {
  color: #7b8796;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.design-story {
  background: #fff;
}

.reviews-grid {
  display: grid;
  gap: 1rem;
}

.review-box {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.review-box h3 {
  margin: 0;
}

.review-stars {
  display: flex;
  gap: 0.05rem;
  color: #f4b400;
}

.review-stars .material-symbols-outlined {
  font-size: 1.1rem;
}

.story-grid {
  display: grid;
  gap: 1.2rem;
}

.story-content {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.team {
  background: #f4f5f7;
}

.team-grid {
  display: grid;
  gap: 1rem;
}

.team-card {
  border: 1px solid #dce2eb;
  background: #fff;
  padding: 1rem;
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 0.9rem;
}

.team-card img.team-card-img-contain {
  object-fit: contain;
}

.team-card h3 {
  margin-bottom: 0.35rem;
}

.team-card .role {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b8796;
}

.team-card .quote {
  color: #4b5563;
}

.about-section {
  background: #fff;
}

.about-story .about-card {
  border-color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.about-story .about-main {
  background: linear-gradient(180deg, #fff, #fff5f2);
}

.about-grid {
  display: grid;
  gap: 1rem;
}

.about-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: 0.9rem;
}

.about-main {
  background: #f7f9fc;
}

.about-lead {
  font-size: 1.04rem;
  font-weight: 500;
  color: #111827;
}

.about-values {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.6rem;
}

.about-values div {
  border-left: 2px solid var(--cta);
  padding-left: 0.7rem;
  display: grid;
  gap: 0.14rem;
}

.about-values strong {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-values span {
  color: #4b5563;
  font-size: 0.9rem;
}

.about-points h3 {
  margin-bottom: 0.2rem;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.about-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.65rem;
  align-items: flex-start;
}

.about-list .material-symbols-outlined {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.about-list p {
  margin: 0;
  color: #4b5563;
}

.about-list strong {
  color: #111827;
}

.about-approach .value-content,
.about-approach .value-number {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.about-approach .value-content {
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.approach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.approach-list li {
  position: relative;
  padding-left: 1.45rem;
  color: #374151;
}

.approach-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta);
}

.value-number-about {
  background: linear-gradient(180deg, #fff2ef, #fff);
}

.contact {
  background: #f4f5f7;
}

.contact-grid {
  display: grid;
  gap: 1.4rem;
}

.contact-shell {
  background: #ececec;
  border: 1px solid #d8d8d8;
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.contact-shell h2 {
  margin-bottom: 1.5rem;
}

.contact-form,
.contact-side {
  background: transparent;
  border: 0;
  padding: 0;
}

.contact-title {
  margin: 0 0 0.55rem;
  color: var(--cta);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-subtitle {
  color: #565656;
  margin-bottom: 1.2rem;
}

.contact-side {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding-top: 0.2rem;
}

.contact-form {
  display: grid;
  gap: 0.35rem;
}

.contact-form label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.contact-form input {
  width: 100%;
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 0.72rem 0.82rem;
  font: inherit;
}

.contact-form textarea {
  width: 100%;
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 0.72rem 0.82rem;
  font: inherit;
  resize: vertical;
}

.contact-form input:focus {
  outline: none;
  border-color: var(--cta);
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--cta);
}

.contact-form .btn {
  margin-top: 0.6rem;
  width: fit-content;
  min-width: 210px;
}

.contact-person {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.contact-person img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 0.45rem;
}

.contact-person h3 {
  margin: 0 0 0.3rem;
}

.contact-person p {
  margin: 0;
  color: #323232;
}

.error-msg {
  min-height: 1rem;
  font-size: 0.8rem;
  color: #c62828;
}

.form-status {
  min-height: 1.1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  background: linear-gradient(180deg, #042133, #031a29);
  color: #d7dde8;
  padding: 1.2rem 0;
}

.footer-panel {
  padding: 1.6rem var(--container-pad) 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.footer-col p {
  color: #d4dee8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .btn {
  margin-top: 0.9rem;
}

.footer-social {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.footer-bottom p {
  color: #9eabc0;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.footer-bottom p a {
  display: inline-block;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.7rem;
  row-gap: 0.1rem;
}

.footer-legal > * {
  min-width: 0;
}

.footer-legal a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer-made-by {
  height: 18px;
  width: auto;
  opacity: 0.95;
}

.footer-made-by-logo {
  height: 26px;
  width: auto;
  opacity: 0.95;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-style: normal;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  :root {
    --container-pad: 24px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav-links a {
    position: relative;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.2s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .nav-cta {
    display: inline-flex;
  }

  .value-grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realization-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 1.8rem;
  }

  .contact-side {
    border-left: 1px solid #d9d9d9;
    padding-left: 1.8rem;
  }

  .about-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom p {
    flex: 1 1 360px;
    text-align: center;
  }
}

@media (min-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .realization-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --container-pad: 18px;
    --header-height: 72px;
  }

  body {
    font-size: 15.5px;
  }

  h1,
  h2,
  h3,
  h4 {
    letter-spacing: 0.04em;
  }

  h1 {
    font-size: clamp(2rem, 11.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .section-gap {
    padding: clamp(3rem, 10vw, 4.6rem) 0;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 1rem;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  .navbar {
    min-height: var(--header-height);
  }

  .brand img {
    height: 44px;
    max-width: 190px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    top: calc(var(--header-height) + 6px);
    left: var(--container-pad);
    right: var(--container-pad);
    padding: 0.8rem 0.95rem;
    gap: 0;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-6px);
  }

  .nav-open .nav-links {
    transform: translateY(0);
  }

  .nav-links li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.72rem 0;
  }

  .hero {
    min-height: min(720px, 92svh);
    align-items: flex-end;
    padding-bottom: 5.2rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.42) 0%, rgba(6, 12, 24, 0.92) 78%);
  }

  .hero-copy p,
  .hero-content > p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    gap: 0.6rem;
    max-width: 360px;
  }

  .hero-dots {
    bottom: 46px;
  }

  .scroll-indicator {
    display: none;
  }

  .services-list li,
  .velux-service-list li {
    grid-template-columns: 30px 1fr;
    gap: 0.65rem;
  }

  .services-list .material-symbols-outlined,
  .velux-service-list .material-symbols-outlined {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .project-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(var(--container-pad) * -1);
    margin-right: calc(var(--container-pad) * -1);
    padding: 0 var(--container-pad) var(--container-pad);
    scroll-padding-left: var(--container-pad);
  }

  .project-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card {
    flex: 0 0 min(86%, 340px);
    scroll-snap-align: start;
  }

  .project-card img {
    height: clamp(220px, 64vw, 280px);
  }

  .project-meta {
    padding: 0.95rem 1rem 1.05rem;
  }

  .gallery-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(var(--container-pad) * -1);
    margin-right: calc(var(--container-pad) * -1);
    padding: 0 var(--container-pad) 0.35rem;
  }

  .gallery-toolbar::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter {
    flex: 0 0 auto;
  }

  .realization-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(var(--container-pad) * -1);
    margin-right: calc(var(--container-pad) * -1);
    padding: 0 var(--container-pad) var(--container-pad);
    scroll-padding-left: var(--container-pad);
  }

  .realization-gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery-card {
    flex: 0 0 min(86%, 340px);
    scroll-snap-align: start;
  }

  .review-box,
  .team-card,
  .about-card {
    padding: 1rem;
  }

  .team-card img {
    height: clamp(230px, 70vw, 280px);
  }

  .story-image img {
    min-height: 240px;
  }

  .contact-shell {
    padding: 1.1rem;
  }

  .contact-grid {
    gap: 1.2rem;
  }

  .contact-title {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
  }

  .contact-person {
    grid-template-columns: 58px 1fr;
    gap: 0.75rem;
  }

  .contact-person img {
    width: 58px;
    height: 58px;
  }

  .contact-form .btn {
    min-width: 0;
  }

  .lightbox-figure {
    max-width: calc(100vw - 28px);
  }

  .lightbox-close {
    top: 0.8rem;
    right: 0.8rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 54px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }

  .site-footer {
    padding: 0;
  }

  .footer-panel {
    padding: 2rem var(--container-pad) 1.35rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.1rem;
    gap: 0;
    align-items: start;
  }

  .footer-col {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-col:first-child,
  .footer-col:nth-child(2) {
    padding-top: 0;
    border-top: 0;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-col h4 {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
  }

  .footer-col ul {
    gap: 0;
  }

  .footer-col li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-col a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a,
  .footer-bottom p {
    overflow-wrap: anywhere;
  }

  .footer-col .btn {
    margin-top: 0.75rem;
  }

  .footer-social {
    gap: 0.65rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    min-height: 0;
  }

  .footer-bottom {
    margin-top: 0.35rem;
    padding-top: 1.1rem;
  }

  .footer-legal {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
  }

  .footer-made-by-logo {
    height: 34px;
    max-width: 190px;
  }

  .footer-made-by {
    height: 20px;
    max-width: 150px;
  }
}

@media (max-width: 380px) {
  :root {
    --container-pad: 14px;
  }

  .brand img {
    max-width: 172px;
  }

  .hero {
    padding-bottom: 4.4rem;
  }

  .footer-bottom p {
    font-size: 0.78rem;
  }
}
