/* ===== Design Tokens ===== */
:root{
  --bg: #F4EFE8;
  --nav-text: #0B2A4A;
  --text: #0F172A;

  /* Accent */
  --accent: #ED7C0E;

  /* Hero overlay */
  --overlay-strong: rgba(13, 46, 78, .78);
  --overlay: rgba(13, 46, 78, .64);
  --overlay-soft: rgba(13, 46, 78, .40);

  --white: #FFFFFF;
 
  --footer-gap-left: 12px;   /* logo → services */
  --footer-gap-right: 132px;  /* services → contact */
}

*{ box-sizing:border-box; }

html, body{
  height: 100%;
}

body{
  margin:0;
  padding-top: 78px;   /* высота хедера */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
}

/* Layout */
.container{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Header ===== */
.burger{
  display:none; /* desktop only */
}
.site-header{
  position: fixed;       /* фиксируем */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;         /* поверх hero */
  background: rgba(244,239,232,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-inner{
  padding: 24px 0;               /* Figma-like vertical padding */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--nav-text);
}

.brand-logo{
  height: 30px;                 /* logo size */
  width: auto;
  display:block;
}

.brand-text{
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 36px;
}

.nav a{
  text-decoration:none;
  color: var(--nav-text);
  font-weight: 600;
  font-size: 16px;
}

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 93, 0.6); /* твой цвет 60% */
  z-index: 1;
}
.hero-img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;      /* масштабирует без искажений */
  z-index:0;
}

.hero-inner{
  position:relative;
  z-index:2;
}

.hero-inner{
  padding: 96px 0;
  max-width: 760px;
}

.hero h1{
  font-family: 'Poppins', sans-serif;
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
}

.hero h1 .accent{
  display: block;
  background: linear-gradient(
    90deg,
    #ED7C0E 0%,
    #FF9B0E 50%,
    #FB961B 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero p{
  margin: 0 0 26px;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
}

/* Buttons (no gradients, no shadows) */
.cta-row{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 54px;
  padding: 0 44px;        /* wider buttons */
  min-width: 200px;       /* ensures strong width like reference */
  border-radius: 0;       /* sharp angles */
  font-weight: 700;
  font-size: 18px;
  text-decoration:none;
  user-select:none;
  white-space:nowrap;
  transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary{
  min-width: 170px;
  background: linear-gradient(
    90deg,
    #ED7C0E 0%,
    #FF9B0E 50%,
    #FB961B 100%
  );
  background-size: 200% 100%;
  color: #fff;
  border: none;
  transition: background-position .3s ease, transform .2s ease;
}

.btn-primary:hover{
  background-position: 100% 0;
  transform: translateY(-2px);
}

.btn-outline{
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
  background: transparent;
}
.btn-outline:hover{
  background: #fff;
  color: var(--nav-text);   /* текст тёмный для контраста */
  border-color: #fff;
}

/* Trust row */
.trust-row{
  display:flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: #fff;
  font-weight: 600;
}

.trust-item{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 16px;
}

.check-icon{
  width: 18px;
  height: 18px;
  display:block;
}

/* ===== Services ===== */
.services{
  padding: 96px 0 96px;
  background: var(--bg);
}

.services-title{
  font-family: 'Poppins', sans-serif;
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--nav-text);
}

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card container */
.service-card{
  position: relative;
  height: 420px;                 /* подгони под свой макет */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* Image area */
.service-media{
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.service-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

/* Bottom white panel (collapsed) */
.service-panel{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 120px;
  background: #fff;

  padding: 48px 20px 18px;  /* чуть больше места сверху под “вылезающую” иконку */

  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;

  transition: height .35s ease;

  z-index: 1;
  position: absolute;      /* у тебя уже есть */
}

.service-icon{
  width: 64px;
  height: 64px;
  display: block;

  position: absolute;
  top: 0;                 /* верх панели */
  left: 50%;
  transform: translate(-50%, -50%); /* 👈 половина иконки выше панели */
  z-index: 2;

  margin: 0;              /* убираем прошлые margin-top/margin-bottom */
}

.service-heading{
  font-family: 'Poppins', sans-serif;
  margin: 0;
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  color: var(--nav-text);
  line-height: 1.15;
}
.service-heading a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.service-heading a:hover {
  text-decoration: underline;
}

/* Hidden list by default */
.service-list{
  margin: 6px 0 0;
  padding-left: 18px;
  color: #8A95A5;
  font-weight: 500;
  line-height: 1.9;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity .20s ease, transform .20s ease;
  pointer-events: none;
}

/* Hover reveal behavior */
.service-card:hover .service-panel{
  height: 320px;                 /* белый фон “поднимается” */
}

.service-card:hover .service-list{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: .08s;
}

/* Optional: subtle image movement on hover */
.service-card:hover .service-photo{
  transform: scale(1.03);
}

/* CTA */
.services-cta{
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
/* ===== Why Section ===== */

.why{
  padding: 0px 0 96px;
  background: var(--bg);
  text-align: center;
}

.why-title{
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--nav-text);
  margin: 0 0 24px;
}

.why-subtitle{
  max-width: 720px;
  margin: 0 auto 48px;
  color: #8A95A5;
  font-size: 21px;
  line-height: 1.6;
}

.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch; /* чтобы все карточки тянулись одинаково */
}

.why-card{
  background: #fff;
  padding: 28px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);

  display: grid;
  grid-template-rows: auto 1fr; /* header + text */
  min-height: 160px; /* можно подогнать под Figma */
}

.why-card-head{
  display: grid;
  grid-template-columns: 18px 1fr; /* фикс ширина под чек */
  column-gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.why-check{
  width: 18px;
  height: 18px;
  margin-top: 4px; /* выравниваем по baseline заголовка */
  flex-shrink: 0;
}

.why-card h3{
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--nav-text);
  margin: 0;
  line-height: 1.25;
}

.why-card p{
  margin: 0;
  color: #8A95A5;
  line-height: 1.7;
}
.why-card{
  transition: transform .25s ease, box-shadow .25s ease;
}

.why-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,.08);
}
/* ===== Testimonials ===== */

.testimonials{
  padding: 0px 0 96px;
  background: var(--bg);
  text-align: center;
}

.section-title{
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--nav-text);
  margin: 0 0 24px;
}

.section-subtitle{
  max-width: 680px;
  margin: 0 auto 48px;
  color: #8A95A5;
  font-size: 21px;
  line-height: 1.6;
}

.testimonials-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card{
  background: #fff;
  padding: 32px 28px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.testimonial-card p{
  margin: 0;
  color: var(--nav-text);
  line-height: 1.7;
  font-weight: 500;
}

.stars{
  color: var(--accent);
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
/* ===== Our Work ===== */

.work{
  padding: 0px 0 96px;
  background: var(--bg);
  text-align: center;
}

.work-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.work-item{
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}

.work-item:hover{
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
}

.work-cta{
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

/* ===== Referral ===== */
.referral-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 96px;
  background-image: url("referral.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.referral-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 46, 78, 0.75);
}

.referral-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 60px 0 76px;
}

.referral-title {
  margin: 0 0 20px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.referral-subtitle {
  margin: 0 auto 28px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.referral-btn {
  min-width: 200px;
}

.referral-scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.referral-scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  animation: heroArrowBounce 1.6s infinite;
}

/* ===== Contact ===== */
.contact{
  padding: 96px 0;
  background: #0E2B4D; /* базовый тёмно-синий */
  position: relative;
}

/* overlay как на твоём hero (60%) */
.contact::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(26,54,93,.60); /* #1A365D @ 60% */
  pointer-events:none;
}

.contact-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}

.contact-title{
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  color: #fff;
  margin: 0 0 48px;
}

/* left info */
.contact-info{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  color: #fff;
  font-weight: 400;
  font-size: 18px;
}

.contact-item{
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: .95;
}

.contact-ico{
  width: 28px;
  height: 28px;
  display: block;
}
.phone-link {
  color: #ffffff;       /* или твой цвет */
  text-decoration: none;
}

.phone-link:hover {
  color: #f7931e;       /* если хочешь ховер */
}

.contact-link{
  color: #fff;
  text-decoration: none;
}
.contact-link:hover{
  text-decoration: underline;
}

/* card */
.contact-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  padding: 22px;
  border-radius: 0; /* sharp */
}

.contact-form{
  display: grid;
  gap: 14px;
}

.field input,
.field textarea{
  width: 100%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0;            /* sharp */
  padding: 14px 16px;
  font-family: inherit;        /* Inter */
  font-size: 16px;
  outline: none;
}

.field textarea{
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(237,124,14,.8); /* accent */
}

/* button inside contact */
.contact-submit{
  width: 100%;
  height: 56px;
  margin-top: 8px;
}

/* accessibility helper */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
/* ===== Footer ===== */

.footer{
  background: #16365D; /* твой футер-синий */
  color: #fff;
  padding: 64px 0 0;
}

/* 1) Один общий GRID: бренд | services(широкий) | contact */
.footer-grid{
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  align-items: start;
}

/* Бренд */
.footer-logo{ height: 28px; width: auto; display:block; }

/* 2) Services */
.footer-services .footer-title{
  margin-bottom: 28px;
  font-size: 14px;
}
.footer-list a{
  color:inherit;
  text-decoration:none;
  opacity:.9;
  transition:.2s;
}

.footer-list a:hover{
  opacity:1;
  text-decoration:underline;
}
.footer-services-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
}
.footer-services{
  margin-left: var(--footer-gap-left);
}

/* 3) Contact — ключ: НЕ центрировать, а выровнять по левому краю */
.footer-contact{
  text-align: left;
  margin-left: var(--footer-gap-right);
  justify-self: start;  /* чтобы блок начинался строго от своей колонки */
}

.footer-title{
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  opacity: .95;
}

.footer-col-title{
  font-weight: 500;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.25;
}
.footer-col{
  align-self: start;
}
.footer-list{
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
  font-weight: 500;
  font-size: 14px;
}

.footer-contact-body{
  margin-top: 28px; /* чтобы совпало с сервисными колонками визуально */
  display: grid;
  row-gap: 16px;   /* ← регулируй это */
  font-weight: 500;
  font-size: 14px;
}

.footer-link{
  color: #fff;
  text-decoration: none;
}

.footer-link:hover{
  text-decoration: underline;
}

.footer-contact-body a.footer-link{
  display: block;
}

.footer-social{
  display: block;
  margin-top: 12px;
}

.footer-social img{
  width: 22px;
  height: 22px;
  display: inline-flex;
}

/* Нижняя полоска */
.footer-bottom{
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.25);
  display:flex;
  justify-content: space-between;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  font-size: 14px;
}
/* =========================
   HEADER DROPDOWN
========================= */

.nav-dropdown{
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--nav-text);
  cursor: pointer;
}

.nav-arrow{
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu{
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 230px;
  background: #F4EFE8;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 14px 34px rgba(0,0,0,0.10);
  border-radius: 0px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.nav-dropdown-menu a{
  display: block;
  padding: 12px 18px;
  color: #16365D;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover{
  background: rgba(22, 54, 93, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown:focus-within .nav-arrow{
  transform: rotate(225deg);
}

/* mobile state */
.nav-dropdown.open .nav-arrow{
  transform: rotate(225deg);
}

.accent-walls-hero{
  position: relative;
  min-height: 78vh;
  background-image: url("accent.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.service-hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.service-hero-content{
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
  padding-top: 60px;
  padding-bottom: 90px;
  text-align: center;
  margin: 0 auto;
}

.service-hero-title{
  margin: 0 0 32px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
}

.service-hero-subtitle{
  margin: 0 auto 44px;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
  text-align: center;
}


.service-hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 56px;
  padding: 0 24px;
  border-radius: 0px;
  font-weight: 600;
  font-size: 17px;
}

.service-hero-scroll{
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.service-hero-scroll-arrow{
  width: 16px;
  height: 16px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  animation: heroArrowBounce 1.6s infinite;
}
.service-intro {
  padding: 96px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}

.service-intro-copy {
  max-width: 760px;
}

.service-intro-title {
  font-size: 40px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--nav-text);
  text-align: left;
}

.service-intro-text {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 24px;
  color: var(--nav-text);
  max-width: 680px;
  text-align: left;
}

.service-secondary-intro-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: #8A95A5;
  max-width: 680px;
  text-align: left;
}

.intro-video {
  width: 260px;
  justify-self: end;
  overflow: hidden;
}

.intro-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}


.accent-types {
  padding: 0 0 96px;
}

.accent-types-title {
  text-align: center;
  font-size: 40px;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--nav-text);
}

.accent-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.accent-type-card {
  background: #fff;
  padding: 30px;
  transition: all 0.3s ease;
}

.accent-type-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--nav-text);
}

.accent-type-card p {
  color: #8A95A5;
  line-height: 1.6;
}

.accent-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.process {
  padding: 0 0 96px;
  background: var(--bg);
  overflow: hidden;
}

.process-title {
  margin: 0 auto 48px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--nav-text);
}

.process-timeline {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 72px;
}

/* одна общая линия, проходит через центры квадратов */
.process-timeline::before {
  display: none;
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.process-item::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 32px;              /* центр квадрата */
  height: calc(100% + 72px); /* тянем до следующего item через gap */
  width: 4px;
  background: #ED7C0E;
  z-index: 0;
}

.process-item:last-child::before {
  display: none;
}

.process-marker {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ED7C0E 0%, #FF9B0E 100%);
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  position: relative;
}

/* убираем старые куски линии под каждым квадратом */
.process-marker::after {
  display: none;
}

.process-text {
  display: grid;
  grid-template-rows: 72px auto;
  align-items: start;
}

.process-text h3 {
  margin: 0;
  height: 72px;
  display: flex;
  align-items: center; /* вот это центрирует title по высоте квадрата */
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--nav-text);
}

.process-text p {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #8A95A5;
}
.process-cta {
  margin-top: 48px;
  text-align: center;
}

.process-cta-btn {
  min-width: 220px;
}

.tile-stone-hero {
 position: relative;
  min-height: 78vh;
  background-image: url("kitchen-backsplash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.intro-image {
  width: 260px;
  justify-self: end;
  overflow: hidden;
}

.intro-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.framing-faq {
  padding: 0px 0 96px;
}

.framing-faq .container {
  max-width: 1100px;
}

.framing-faq-title {
  margin: 0 0 48px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nav-text);
}

.framing-faq-list {
  border-top: 1px solid rgba(23, 55, 101, 0.18);
}

.framing-faq-item {
  border-bottom: 1px solid rgba(23, 55, 101, 0.18);
}

.framing-faq-question {
  width: 100%;
  min-height: 114px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: "Poppins", sans-serif;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #173765;
}

.framing-faq-question span:first-child {
  display: block;
  max-width: 85%;
}

.framing-faq-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  font-family: "Inter", sans-serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  color: #173765;
  transition: transform 0.25s ease;
}

.framing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.framing-faq-answer p {
  margin: 0;
  padding: 0 120px 34px 0;
  max-width: 900px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(23, 55, 101, 0.82);
}

.framing-faq-item.active .framing-faq-icon {
  transform: rotate(45deg);
}

.framing-faq-item.active .framing-faq-answer {
  max-height: 220px;
}


.flooring-hero {
 position: relative;
  min-height: 78vh;
  background-image: url("flooring-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.drywall-hero {
  position: relative;
  min-height: 78vh;
  background-image: url("drywall-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.framing-hero {
  position: relative;
  min-height: 78vh;
  background-image: url("framing-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.painting-hero {
  position: relative;
  min-height: 78vh;
  background-image: url("painting-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

@keyframes heroArrowBounce {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.9;
  }
  50% {
    transform: rotate(45deg) translate(5px, 5px);
    opacity: 1;
  }
}

.burger{
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span{
  width: 24px;
  height: 2px;
  background: var(--nav-text);
  transition: .3s ease;
}

.burger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2){
  opacity: 0;
}

.burger.active span:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   Responsive (better mobile)
   Put this at the END of your CSS
========================= */

/* 1100px and down: slightly tighter desktop/tablet */
@media (max-width: 1100px){
  .container{ width: min(1100px, calc(100% - 32px)); }

  .services-grid,
  .why-grid,
  .testimonials-grid{
    gap: 22px;
  }

  .footer-grid{
    grid-template-columns: 240px 1fr 300px;
  }

  .footer-services-grid{
    column-gap: 42px;
  }
}

/* 980px and down: tablet -> single column sections */
@media (max-width: 980px){
  .container{ width: calc(100% - 32px); }

  /* Header */
  body{ padding-top: 66px; }
  .header-inner{ padding: 16px 0; }
  .brand-logo{ height: 26px; }
  .nav{ gap: 18px; }

  /* Hero */
  .hero{ min-height: 92vh; }
  .hero-inner{
    padding: 64px 0;
    max-width: 640px;
  }
  .hero p{
    font-size: 16px;
    line-height: 1.6;
  }

  /* Buttons smaller (this was one of your asks) */
  .btn{
    height: 48px;
    padding: 0 28px;
    min-width: 160px;
    font-size: 16px;
  }
  .cta-row{ gap: 14px; }

  /* Services */
  .services{ padding: 72px 0; }
  .services-grid{ grid-template-columns: 1fr; }
  .service-card{ height: 420px; }

  /* Why / Testimonials / Work */
  .why{ padding: 0 0 72px; }
  .testimonials{ padding: 0 0 72px; }
  .work{ padding: 0 0 72px; }

  .why-grid,
  .testimonials-grid{
    grid-template-columns: 1fr;
  }

  .work-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .work-item{ height: 220px; }

  /* Contact */
  .contact{ padding: 72px 0; }
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-title{ margin-bottom: 28px; }
  .contact-info{
    gap: 16px;
    font-size: 16px;
  }
  .contact-ico{ width: 24px; height: 24px; }

  /* Footer */
  .footer{ padding: 72px 0 0; }

  .footer-grid{
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .footer-services-grid{
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-video {
    justify-self: start;
  }
   .framing-faq{
    padding: 0 0 72px;
  }

  .framing-faq-title{
    margin-bottom: 28px;
    font-size: 36px;
    line-height: 1.12;
  }

  .framing-faq-list{
    gap: 0;
  }

  .framing-faq-question{
    min-height: 88px;
    padding: 0;
    gap: 18px;
    font-size: 20px;
    line-height: 1.3;
  }

  .framing-faq-question span:first-child{
    max-width: 100%;
    padding: 20px 0;
  }

  .framing-faq-icon{
    width: 30px;
    font-size: 34px;
    flex: 0 0 30px;
  }

  .framing-faq-answer p{
    padding: 0 44px 20px 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .framing-faq-item.active .framing-faq-answer{
    max-height: 320px;
  }
}

/* 760px and down: large phones */
@media (max-width: 760px){
  .container{ width: calc(100% - 24px); }

  /* Header */
  body{ padding-top: 62px; }
  .header-inner{ padding: 14px 0; }
  .nav{ display:none; } /* same as you did, but here it's consistent */

  /* Hero typography */
  .hero-inner{ padding: 54px 0; }
  .hero h1{
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.05;
  }
  .hero p{
    font-size: 15px;
    max-width: 520px;
  }

  /* Buttons full width (clean on small phones) */
  .cta-row{ flex-direction: column; align-items: flex-start; }
  .btn{
    width: 100%;
    min-width: 0;
    height: 46px;
    font-size: 16px;
    padding: 0 18px;
  }

  .trust-row{ gap: 14px; }
  .trust-item{ font-size: 14px; }

  /* Services card tweak */
  .service-card{ height: 400px; }
  .service-heading{ font-size: 20px; }

  .intro-video,
  .intro-image{
    width: 100%;
    max-width: 260px;
  }
    .accent-types-grid{
    grid-template-columns: 1fr;
  }

  .process {
    padding: 0 0 72px;
  }

  .process-timeline{
    gap: 40px;
  }

  .process-item{
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
  }

  .process-item::before{
    left: 27px;
    top: 28px;
    height: calc(100% + 40px);
  }

  .process-marker{
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

  .process-text{
    grid-template-rows: auto auto;
  }

  .process-text h3{
    height: auto;
    min-height: 56px;
    font-size: 20px;
    line-height: 1.2;
    align-items: center;
  }

  .process-text p{
    font-size: 15px;
    line-height: 1.6;
  }

  /* Hero */
  .accent-walls-hero,
  .tile-stone-hero,
  .flooring-hero,
  .drywall-hero,
  .framing-hero,
  .painting-hero{
    min-height: 68vh;
    background-position: center;
  }

  .service-hero-content{
    max-width: 100%;
    padding-top: 34px;
    padding-bottom: 72px;
  }

  .service-hero-title{
    margin: 0 0 18px;
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .service-hero-subtitle{
    margin: 0 auto 24px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
  }

  .service-hero-btn{
    min-width: 0;
    width: 100%;
    max-width: 280px;
    height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }

  .service-hero-scroll{
    bottom: 18px;
    width: 34px;
    height: 34px;
  }

  .service-hero-scroll-arrow{
    width: 12px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }

  /* Intro */
  .service-intro{
    padding: 64px 0;
  }

  .intro-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-intro-copy{
    max-width: 100%;
  }

  .service-intro-title{
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 16px;
  }

  .service-intro-text{
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 100%;
  }

  .service-secondary-intro-text{
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
  }

  .intro-video,
  .intro-image{
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  /* Types */
  .accent-types{
    padding: 0 0 64px;
  }

  .accent-types-title{
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 22px;
  }

  .accent-types-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .accent-type-card{
    padding: 20px 18px;
  }

  .accent-type-card h3{
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 8px;
  }

  .accent-type-card p{
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
  }

  /* Process */
  .process{
    padding: 0 0 64px;
  }

  .process-title{
    margin-bottom: 28px;
    font-size: 30px;
    line-height: 1.1;
  }

  .process-timeline{
    gap: 28px;
  }

  .process-item{
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
  }

  .process-item::before{
    left: 22px;
    top: 24px;
    width: 3px;
    height: calc(100% + 28px);
  }

  .process-marker{
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .process-text{
    grid-template-rows: auto auto;
  }

  .process-text h3{
    min-height: 48px;
    height: auto;
    font-size: 18px;
    line-height: 1.2;
  }

  .process-text p{
    font-size: 14px;
    line-height: 1.6;
  }

  .process-cta{
    margin-top: 28px;
  }

  .process-cta-btn{
    min-width: 0;
    width: 100%;
    max-width: 280px;
  }

  /* Why / work / contact spacing for service pages */
  .why{
    padding: 0 0 64px;
  }

  .work{
    padding: 0 0 64px;
  }

  .contact{
    padding: 64px 0;
  }

  .contact-title{
    font-size: 30px;
    margin-bottom: 20px;
  }

  .contact-card{
    padding: 16px;
  }

  .field textarea{
    min-height: 120px;
  }

  /* FAQ */
  .framing-faq{
    padding: 0 0 64px;
  }

  .framing-faq-title{
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 1.1;
  }

  .framing-faq-question{
    min-height: 78px;
    gap: 16px;
    font-size: 18px;
    line-height: 1.25;
  }

  .framing-faq-question span:first-child{
    max-width: 100%;
    padding: 18px 0;
  }

  .framing-faq-icon{
    width: 28px;
    font-size: 32px;
  }

  .framing-faq-answer p{
    padding: 0 36px 20px 0;
    font-size: 14px;
    line-height: 1.65;
  }

  .framing-faq-item.active .framing-faq-answer{
    max-height: 320px;
  }

  .burger{
    display:flex;
    z-index:1301;
  }

  .nav{
    display:flex !important;
    position:fixed;
    top:62px;
    left:0;
    right:0;
    height:calc(100vh - 62px);
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    background:var(--bg);
    padding:40px 24px 32px;
    overflow-y:auto;
    transform:translateX(100%);
    transition:transform .35s ease;
    z-index:1200;
  }

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

  .nav > a,
  .nav-dropdown{
    width:100%;
    border-bottom:1px solid rgba(22,54,93,0.12);
  }

  .nav > a,
  .nav-dropdown-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:60px;
    padding:0;
    background:transparent;
    border:0;
    text-decoration:none;
    color:var(--nav-text);
    font-size:18px;
    font-weight:700;
  }

  .nav-dropdown{
    display:block;
  }

  .nav-arrow{
    width:10px;
    height:10px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg);
    transition:transform .2s ease;
    margin-top:-4px;
  }

  .nav-dropdown.open .nav-arrow{
    transform:rotate(225deg);
    margin-top:2px;
  }

  .nav-dropdown-menu{
    display:none;
    position:static;
    min-width:100%;
    background:transparent;
    border:0;
    box-shadow:none;
    border-radius:0;
    padding:6px 0 14px 0;
    opacity:1;
    visibility:visible;
    transform:none;
  }

  .nav-dropdown.open .nav-dropdown-menu{
    display:block;
  }

  .nav-dropdown-menu a{
    display:block;
    padding:12px 0 12px 18px;
    font-size:16px;
    font-weight:500;
    color:var(--nav-text);
    text-decoration:none;
    white-space:normal;
    opacity:.9;
  }
}


/* 480px and down: small Android (old / compact devices) */
@media (max-width: 480px){
  .brand-logo{
  height: 24px;                 /* logo size */
  width: auto;
  display:block;
}
  .hero h1{ font-size: 30px; }
  .btn{ height: 42px; font-size: 14px; }
  /* ===== Services - Mobile ===== */
  .service-card{
    height: 310px;           /* было 420 */
  }
  .service-card:hover .service-panel{
    height: 220px; /* оставляем свернутым */
  }
  .service-panel{
    height: 85px;            /* было 120 */
    padding: 30px 14px 12px; /* компактнее */
    gap: 6px;
  }
  .service-icon{
  width: 36px;
  height: 36px;
} 

 .service-heading{
  font-size: 18px;
}

  .service-panel li{
    font-size: 14px;
    line-height: 1.4;
  }
  .why-subtitle{
  font-size: 16px;
}
.why-card h3{
  font-size: 16px;
}
.why-card p{
  font-size: 14px;
}
.why-card{
  padding: 18px;
  min-height: 120px; /* можно подогнать под Figma */
}
.why-check{
  width: 14px;
  height: 14px;
  margin-top: 4px; /* выравниваем по baseline заголовка */
  flex-shrink: 0;
}
.testimonials-subtitle,
.section-subtitle{
  font-size: 16px;
}
.testimonial-card{
  padding: 20px 20px;
}

.testimonial-card p{
  font-size: 14px;
}

.stars{
  font-size: 21px;
}

/* left info */
.contact-info{
  font-size: 14px;
}

.contact-ico{
  width: 20px;
  height: 20px;
}

.field input,
.field textarea{
  font-size: 14px;
}
/* Footer tweaks */
.footer-contact{
  margin-left: 12px;
}
.footer{
  padding: 48px 0 0;
}

/* Бренд */
.footer-logo{ height: 24px; width: auto; display:block; }

/* 2) Services */
.footer-services .footer-title{
  margin-bottom: 28px;
  font-size: 12px;
}

.footer-title{
  font-size: 12px;
}

.footer-col-title{
  font-size: 12px;
}

.footer-list{
  font-size: 12px;
}

.footer-contact-body{
  font-size: 12px;
}

.footer-bottom{
  font-size: 12px;
}

/* Global compact feeling */
  .container{
    width: calc(100% - 20px);
  }

  /* Hero */
  .accent-walls-hero,
  .tile-stone-hero,
  .flooring-hero,
  .drywall-hero,
  .framing-hero,
  .painting-hero{
    min-height: 60vh;
  }

  .service-hero-content{
    padding-top: 22px;
    padding-bottom: 58px;
  }

  .service-hero-title{
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.1;
  }

  .service-hero-subtitle{
    margin: 0 auto 18px;
    font-size: 14px;
    line-height: 1.55;
  }

  .service-hero-btn{
    height: 42px;
    max-width: 240px;
    font-size: 14px;
    padding: 0 14px;
  }

  .service-hero-scroll{
    bottom: 12px;
    width: 28px;
    height: 28px;
  }

  .service-hero-scroll-arrow{
    width: 10px;
    height: 10px;
  }

  /* Intro */
  .service-intro{
    padding: 48px 0;
  }

  .intro-grid{
    gap: 18px;
  }

  .service-intro-title{
    font-size: 24px;
    margin: 0 0 12px;
  }

  .service-intro-text{
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
  }

  .service-secondary-intro-text{
    font-size: 13px;
    line-height: 1.6;
  }

  .intro-video,
  .intro-image{
    margin: 0 auto;
    max-width: 180px;
  }

  /* Types */
  .accent-types{
    padding: 0 0 48px;
  }

  .accent-types-title{
    font-size: 24px;
    margin-bottom: 16px;
  }

  .accent-type-card{
    padding: 16px 14px;
  }

  .accent-type-card h3{
    font-size: 16px;
    margin-bottom: 6px;
  }

  .accent-type-card p{
    font-size: 13px;
    line-height: 1.55;
  }

  /* Process */
  .process{
    padding: 0 0 48px;
  }

  .process-title{
    font-size: 24px;
    margin-bottom: 20px;
  }

  .process-timeline{
    gap: 22px;
  }

  .process-item{
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
  }

  .process-item::before{
    left: 18px;
    top: 20px;
    height: calc(100% + 22px);
    width: 2px;
  }

  .process-marker{
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .process-text h3{
    min-height: 40px;
    font-size: 16px;
    line-height: 1.2;
  }

  .process-text p{
    font-size: 13px;
    line-height: 1.55;
  }

  .process-cta{
    margin-top: 22px;
  }

  /* Why / Work / Contact */
  .why{
    padding: 0 0 48px;
  }

  .work{
    padding: 0 0 48px;
  }

  .work-grid{
    gap: 12px;
    margin-top: 16px;
  }

  .work-item{
    height: 180px;
  }

  .contact{
    padding: 48px 0;
  }

  .contact-title{
    font-size: 24px;
    margin-bottom: 16px;
  }

  .contact-grid{
    gap: 20px;
  }

  .contact-info{
    gap: 12px;
    font-size: 14px;
  }

  .contact-item{
    gap: 10px;
    align-items: flex-start;
  }

  .contact-ico{
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .contact-card{
    padding: 14px;
  }

  .field input,
  .field textarea{
    padding: 12px 12px;
    font-size: 14px;
  }

  .field textarea{
    min-height: 110px;
  }

  .contact-submit{
    height: 42px;
    font-size: 14px;
  }

  /* FAQ — most important */
  .framing-faq{
    padding: 0 0 48px;
  }

  .framing-faq-title{
    margin-bottom: 18px;
    font-size: 24px;
  }

  .framing-faq-question{
    min-height: 64px;
    gap: 12px;
    font-size: 15px;
    line-height: 1.35;
    align-items: center;
  }

  .framing-faq-question span:first-child{
    padding: 14px 0;
    max-width: 100%;
  }

  .framing-faq-icon{
    width: 22px;
    font-size: 24px;
  }

  .framing-faq-answer p{
    padding: 0 26px 16px 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .framing-faq-item.active .framing-faq-answer{
    max-height: 360px;
  }
  }

/* =========================
   Services: tap-to-open on mobile
========================= */

/* On mobile/tablet: open card when it has .is-open (tap) */
@media (max-width: 980px){
  /* optional: show "clickable" feeling */
  .service-card{ cursor: pointer; }

  .service-card.is-open .service-panel{
    height: 220px; /* same as hover */
  }

  .service-card.is-open .service-list{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: .08s;
  }
}