/* ============================================
   ПРЕМИУМ ДИЗАЙН - СТРОИТЕЛЬНАЯ КОМПАНИЯ СК ГЕРА
   Минималистичный, элегантный, дорогой стиль
   ============================================ */

:root{
  /* Цветовая палитра - премиум */
  --bg:#ffffff;
  --bg-alt:#fafbfc;
  --text:#1a1a1a;
  --text-light:#4a5568;
  --muted:#6b7280;
  --muted-light:#9ca3af;
  --line:rgba(0,0,0,.06);
  --line-light:rgba(0,0,0,.04);
  
  /* Акценты - элегантные */
  --accent:#1a1a1a;
  --accent-light:rgba(26,26,26,.08);
  --accent-hover:#000000;
  --accent-rgb:26,26,26;
  
  /* Тени - мягкие и деликатные */
  --shadow: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.1);
  
  /* Скругления */
  --radius:12px;
  --radius-sm:8px;
  --radius-lg:16px;
  --radius-xl:24px;
  
  /* Отступы */
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:40px;
  --space-xl:64px;
  --space-2xl:80px;
  
  /* Типографика */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,body{
  height:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:var(--font-base);
  font-size:16px;
  line-height:1.7;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings:"kern" 1;
  text-rendering:optimizeLegibility;
}

a{
  color:inherit;
  text-decoration:none;
  transition:color .2s ease;
}

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

/* ============================================
   КОНТЕЙНЕРЫ
   ============================================ */

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 var(--space-md);
}

@media (max-width:768px){
  .container{
    padding:0 var(--space-sm);
  }
}

/* ============================================
   ТИПОГРАФИКА - ПРЕМИУМ
   ============================================ */

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.02em;
  color:var(--text);
  margin:0;
}

.h1{
  font-size:clamp(40px, 6vw, 64px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.03em;
  margin-bottom:var(--space-md);
}

.h2{
  font-size:clamp(32px, 5vw, 48px);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.025em;
  margin-bottom:var(--space-sm);
}

.h3{
  font-size:clamp(24px, 3vw, 32px);
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.02em;
}

.lead{
  font-size:clamp(18px, 2vw, 20px);
  line-height:1.7;
  color:var(--text-light);
  font-weight:400;
  margin-bottom:var(--space-md);
  max-width:65ch;
}

.p{
  font-size:17px;
  line-height:1.7;
  color:var(--text-light);
  margin:0;
}

.strong{
  font-weight:600;
  color:var(--text);
}

.muted{
  color:var(--muted);
  font-size:15px;
}

/* ============================================
   HEADER - МИНИМАЛИСТИЧНЫЙ
   ============================================ */

.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--line-light);
  transition:all .3s ease;
}

.header.is-hidden{
  transform:translateY(-100%);
}

.header-top{
  background:#ffffff;
  border-bottom:1px solid var(--line-light);
}

.header-top__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-md);
  padding:var(--space-sm) 0;
  min-height:72px;
}

.brand{
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  font-weight:700;
  color:var(--text);
  transition:opacity .2s ease;
}

.brand:hover{
  opacity:.8;
}

.brand img{
  /* The logo PNG is tightly cropped; use a wider, shorter box so it sits visually centered */
  width:120px;
  height:56px;
  object-fit:contain;
  display:block;
  transform:none;
}

@media (min-width:961px){
  /* Move logo slightly towards the center on desktop */
  .brand{ padding-left:78px; }
}

.brand__text{
  display:flex;
  flex-direction:column;
}

.brand__name{
  font-size:20px;
  font-weight:700;
  letter-spacing:-.01em;
  line-height:1.2;
}

.brand__sub{
  font-size:13px;
  color:var(--muted);
  font-weight:400;
  margin-top:2px;
  letter-spacing:0;
}

.header-top__center{
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:left;
  min-width:280px;
}

.header-top__center .muted{
  font-size:14px;
  font-weight:500;
}

.header-top__right{
  display:flex;
  align-items:center;
  gap:var(--space-md);
}

.header-top__contacts{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-end;
  font-size:14px;
}

.header-top__contacts a{
  color:var(--muted);
  font-weight:500;
  transition:color .2s ease;
}

.header-top__contacts a:hover,
.header-top__contacts a.strong{
  color:var(--text);
}

.header-top__contacts .strong{
  font-size:16px;
  font-weight:600;
}

.header-nav{
  background:#ffffff;
  border-top:1px solid var(--line-light);
}

.header-nav__row{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:0;
  min-height:56px;
}

.nav{
  display:flex;
  align-items:center;
  gap:var(--space-sm);
}

.nav a{
  padding:12px 20px;
  font-size:15px;
  font-weight:500;
  color:var(--muted);
  border-radius:var(--radius-sm);
  transition:all .2s ease;
  position:relative;
}

.nav a:hover{
  color:var(--text);
  background:var(--accent-light);
}

.nav a.is-active{
  color:var(--text);
  font-weight:600;
  background:var(--accent-light);
}

/* Бургер меню */
.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  width:44px;
  height:44px;
  padding:10px;
  border:none;
  background:transparent;
  cursor:pointer;
  position:absolute;
  right:0;
}

.burger span{
  display:block;
  width:22px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:all .3s ease;
}

.mobile-panel{
  display:none;
  padding:var(--space-sm) 0;
  border-top:1px solid var(--line-light);
  background:#ffffff;
}

.mobile-panel.open{
  display:block;
}

.mobile-panel a{
  display:block;
  padding:14px var(--space-sm);
  font-size:15px;
  font-weight:500;
  color:var(--muted);
  border-radius:var(--radius-sm);
  transition:all .2s ease;
}

.mobile-panel a:hover{
  color:var(--text);
  background:var(--accent-light);
}

@media (max-width:960px){
  .header-top__center{
    display:none;
  }
}

@media (max-width:768px){
  .nav{
    display:none;
  }
  .burger{
    display:flex;
  }
  .header-top__row{
    flex-wrap:wrap;
  }
  .header-top__right{
    width:100%;
    justify-content:space-between;
  }
}

@media (max-width:480px){
  .header-top__row{
    gap:12px;
  }
  .header-top__right{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .header-top__right .btn{
    width:100%;
  }
  .header-top__contacts{
    width:100%;
    align-items:flex-start;
  }
  .brand img{
    width:64px;
    height:auto;
  }
}

/* ============================================
   MOBILE POLISH (<= 600px)
   Clean + readable layout for phones
   ============================================ */

@media (max-width: 600px){
  /* Reduce overall vertical whitespace */
  .section{ padding:42px 0; }
  .section--tight{ padding:28px 0; }

  /* Header: keep it compact */
  .header-top{ padding:10px 0; }
  .header-top__row{ gap:10px; }
  .brand img{ width:86px; height:auto; }
  .header-top__right{ gap:10px; }
  .header-top__right .btn{ padding:11px 14px; font-size:14px; border-radius:999px; }

  /* Hide email on small screens to avoid wrap chaos */
  .header-top__contacts a[href^="mailto:"]{ display:none; }
  .header-top__contacts{ gap:6px; }
  .header-top__contacts .strong{ font-size:14px; }

  /* Nav pills more touch-friendly */
  .nav a{ padding:12px 14px; }
}

@media (max-width: 480px){
  /* Prevent header from becoming too tall */
  .header-top__row{ flex-wrap:nowrap; }
  .header-top__right{ flex-direction:row; align-items:center; }
  .header-top__right .btn{ width:auto; }
  .header-top__contacts{ width:auto; align-items:flex-end; }
}

/* Hero readability on mobile: darker overlay ONLY where text is */
@media (max-width: 600px){
  .hero-box{ min-height:560px; }
  .hero-box__content{ padding:26px 18px; }
  .hero__title{ font-size:44px; letter-spacing:-0.02em; text-shadow:0 2px 18px rgba(0,0,0,.45); }
  .hero__lead{ font-size:16px; text-shadow:0 2px 14px rgba(0,0,0,.45); }
  .hero-box__img{ object-position:65% center; }

  /* Stronger gradient on the LEFT (text area) */
  .hero-box__overlay{
    background:linear-gradient(90deg,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.58) 34%,
      rgba(0,0,0,.30) 58%,
      rgba(0,0,0,.00) 78%);
  }

  /* Buttons stack nicely */
  .hero__actions{ flex-direction:column; align-items:stretch; }
  .hero__actions .btn{ width:100%; }
}

@media (max-width: 390px){
  .hero-box{ min-height:520px; }
  .hero__title{ font-size:38px; }
  .hero-box__img{ object-position:62% center; }
}

/* Feature rows: make image + text visually balanced on phones */
@media (max-width: 600px){
  .feature-row{ gap:16px; }
  .feature-media{
    height:auto;
    aspect-ratio: 16 / 10;
    border-radius:22px;
  }
  .feature-row--reverse .feature-media{ aspect-ratio: 16 / 11; }
  .feature-content{ padding:22px 18px; }
}

/* Catalog cards / grids: avoid cramped 2-column */
@media (max-width: 720px){
  .cards{ grid-template-columns:1fr; gap:16px; }
  .card{ border-radius:24px; }
  .card__body{ padding:18px; }
  .card__title{ font-size:20px; }
}

/* Carousels: show arrows on touch devices (no hover) */
@media (max-width: 768px){
  .carousel__btn{ opacity:1; }
}
@media (max-width: 560px){
  .carousel__btn{ width:44px; height:44px; font-size:28px; }
}

/* Works page carousel: remove gray frames, enable arrows on mobile */
@media (max-width: 980px){
  .works-card{ background:transparent; }
}
@media (max-width: 560px){
  .works-carousel__btn{ display:flex; opacity:1; width:44px; height:44px; font-size:26px; }
  .works-carousel__viewport{ padding:0; }
  .works-carousel__track{ padding:0 0 10px 0; }
  .works-card{ width:78vw; max-width:320px; height:62vw; max-height:420px; }
}

/* Floating contact buttons: nicer sizing & spacing on phones */
@media (max-width: 600px){
  .float{ right:14px; bottom:14px; gap:10px; }
  .float__btn{ width:56px; height:56px; }
  .float__btn svg{ width:26px; height:26px; }
  .float__btn--avito{ font-size:12px; }
}

/* ============================================
   КНОПКИ - ЭЛЕГАНТНЫЕ
   ============================================ */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  font-size:15px;
  font-weight:600;
  line-height:1;
  border:2px solid transparent;
  border-radius:var(--radius);
  background:var(--accent);
  color:#ffffff;
  cursor:pointer;
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration:none;
  white-space:nowrap;
}

.btn:hover{
  background:var(--accent-hover);
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}

.btn:active{
  transform:translateY(0);
}

.btn--primary{
  background:var(--accent);
  color:#ffffff;
  border-color:var(--accent);
}

.btn--ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--line);
}

.btn--ghost:hover{
  background:var(--accent-light);
  border-color:var(--accent);
  color:var(--text);
  transform:translateY(-2px);
}

@media (max-width:480px){
  .btn{
    width:100%;
    justify-content:center;
  }
}

/* ============================================
   HERO - ПРЕМИУМ БАННЕР
   ============================================ */

.hero{
  position:relative;
  /* Bring hero closer to the header so the image "starts" right under the menu */
  padding:var(--space-lg) 0 var(--space-2xl);
  overflow:hidden;
}

.hero-box{
  position:relative;
  width:100%;
  height:640px;
  border-radius:var(--radius-xl);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  background:#0a0a0a;
}

/* Use real <img> for the hero background to avoid broken CSS-var URLs on some deployments */
.hero-box__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  /* keep the house on the right, text on the left */
  object-position:right center;
  /* keep image clearly visible while text stays readable */
  filter:brightness(1.12) contrast(1.06) saturate(1.12);
  transform:scale(1);
  transition:transform 12s ease;
}

.hero-box:hover .hero-box__img{
  transform:scale(1.05);
}

.hero-box__overlay{
  position:absolute;
  inset:0;
  /* Darken only the left side where the text is placed */
  /* Stronger left-corner darkening for readability */
  background:
    radial-gradient(90% 90% at 12% 24%, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 58%),
    linear-gradient(90deg,
      rgba(0,0,0,.62) 0%,
      rgba(0,0,0,.42) 34%,
      rgba(0,0,0,.16) 56%,
      rgba(0,0,0,0) 72%);
  z-index:1;
}

.hero-box__content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:var(--space-xl) var(--space-lg);
  max-width:680px;
  color:#ffffff;
}

.hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 16px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:100px;
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,.95);
  margin-bottom:var(--space-md);
  width:fit-content;
}

.hero__title{
  font-size:clamp(32px, 5vw, 50px);
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.03em;
  color:#ffffff;
  margin-bottom:var(--space-sm);
  max-width:22ch;
}

.hero__title span{
  color:rgba(255,255,255,.9);
}

.hero__text{
  font-size:clamp(16px, 1.8vw, 18px);
  line-height:1.6;
  color:rgba(255,255,255,.85);
  margin-bottom:var(--space-md);
  max-width:58ch;
}

.hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:var(--space-md);
}

.hero__cta .btn--primary{
  background:#ffffff;
  color:var(--text);
  border-color:#ffffff;
  box-shadow:0 4px 20px rgba(0,0,0,.2);
}

.hero__cta .btn--primary:hover{
  background:rgba(255,255,255,.95);
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(0,0,0,.3);
}

.hero__cta .btn--ghost{
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(10px);
  color:#ffffff;
  border-color:rgba(255,255,255,.3);
}

.hero__cta .btn--ghost:hover{
  background:rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.5);
}

.hero__trust{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-sm) var(--space-md);
  padding-top:var(--space-sm);
  border-top:1px solid rgba(255,255,255,.15);
}

.trust{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:500;
  color:rgba(255,255,255,.9);
}

.trust .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffffff;
  flex-shrink:0;
  box-shadow:0 0 0 3px rgba(255,255,255,.2);
}

@media (max-width:768px){
  .hero{
    padding:var(--space-lg) 0;
  }
  .hero-box{
    height:520px;
  }
  .hero-box__content{
    padding:var(--space-lg) var(--space-md);
  }
  .hero__title{
    font-size:clamp(28px, 6vw, 40px);
    margin-bottom:12px;
  }
  .hero__text{
    font-size:16px;
    margin-bottom:20px;
  }
  .hero__trust{
    flex-direction:column;
    gap:10px;
  }
  .brand img{
    width:56px;
    height:56px;
  }
}

/* ============================================
   СЕКЦИИ
   ============================================ */

.section{
  padding:var(--space-2xl) 0;
}

.section--alt{
  background:var(--bg-alt);
}

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:var(--space-md);
  margin-bottom:var(--space-xl);
}

/* Keep right-side action links on a single line */
.section__head .link{
  white-space:nowrap;
}

.section__head--center{
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--muted);
  margin-bottom:var(--space-sm);
}

/* Kicker with emoji/icons (used on About page cards) */
.kicker.kicker--icon{
  text-transform:none;
  letter-spacing:0;
  font-size:13px;
  color:var(--text);
}

.kicker.kicker--icon span:first-child{
  font-size:20px; /* bigger icon */
  line-height:1;
}

/* ============================================
   КАРТОЧКИ ДОМОВ - ПРЕМИУМ
   ============================================ */

.catalog{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:var(--space-xl);
}

@media (max-width:960px){
  .catalog{
    grid-template-columns:1fr;
    gap:var(--space-lg);
  }
}

.house,
.house-card{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:all .4s cubic-bezier(0.4, 0, 0.2, 1);
  display:flex;
  flex-direction:column;
}

.house:hover,
.house-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-hover);
  border-color:var(--line);
}

.carousel{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#f5f5f5;
}

.carousel__track{
  width:100%;
  display:flex;
  transition:transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide{
  min-width:100%;
  position:relative;
  overflow:hidden; /* prevent соседний слайд from peeking on image zoom */
  flex:0 0 100%;
}

.carousel__slide img{
  width:100%;
  height:400px;
  object-fit:cover;
  display:block;
  transition:transform .8s cubic-bezier(0.4, 0, 0.2, 1);
}

.house:hover .carousel__slide img,
.house-card:hover .carousel__slide img{
  transform:scale(1.08);
}

.carousel__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  border:1px solid rgba(0,0,0,.1);
  color:var(--text);
  font-size:24px;
  font-weight:300;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:all .3s ease;
  z-index:10;
  box-shadow:var(--shadow-md);
}

.carousel:hover .carousel__btn{
  opacity:1;
}

.carousel__btn:hover{
  background:#ffffff;
  transform:translateY(-50%) scale(1.1);
  box-shadow:var(--shadow-lg);
}

.carousel__btn.prev{
  left:var(--space-sm);
}

.carousel__btn.next{
  right:var(--space-sm);
}

.carousel__dots{
  display:none;
}

.house__body,
.house-card__body{
  padding:var(--space-lg);
  display:flex;
  flex-direction:column;
  flex:1;
}

.house__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:var(--space-sm);
  margin-bottom:var(--space-md);
}

.house__title,
.house-card__title{
  font-size:26px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.02em;
  color:var(--text);
  margin:0;
}

.meta{
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  background:var(--accent-light);
  color:var(--text);
  border-radius:100px;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}

.price{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:var(--space-md) 0;
}

.price__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-sm);
  padding:16px 20px;
  background:#ffffff;
  border:2px solid var(--line);
  border-radius:var(--radius);
  transition:all .3s ease;
  cursor:pointer;
}

.price__item:hover{
  border-color:var(--accent);
  background:var(--accent-light);
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}

.price__label{
  font-size:15px;
  color:var(--text);
  font-weight:600;
  letter-spacing:-.01em;
}

.price__value{
  font-size:26px;
  font-weight:700;
  color:var(--accent);
  letter-spacing:-.02em;
  white-space:nowrap;
}

.house__actions,
.house-card__actions{
  display:flex;
  gap:12px;
  margin-top:auto;
  padding-top:var(--space-md);
  border-top:1px solid var(--line-light);
}

.house__actions .btn,
.house-card__actions .btn{
  flex:1;
  min-width:0;
}

@media (max-width:640px){
  .carousel__slide img{
    height:300px;
  }
  .house__actions,
  .house-card__actions{
    flex-direction:column;
  }
  .house__actions .btn,
  .house-card__actions .btn{
    width:100%;
  }
}

/* ============================================
   FEATURES
   ============================================ */

.feature-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-2xl);
  /* Make image and text blocks match height */
  align-items:stretch;
  margin-bottom:var(--space-2xl);
}

.feature-row:last-child{
  margin-bottom:0;
}

.feature-row--reverse{
  direction:rtl;
}

.feature-row--reverse > *{
  direction:ltr;
}

.feature-media{
  position:relative;
  border-radius:var(--radius-xl);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  background:#f5f5f5;
  height:100%;
}

.feature-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-row:hover .feature-media img{
  transform:scale(1.05);
}

.feature-text .h2{
  margin-bottom:var(--space-md);
}

.feature-content{
  height:100%;
}

.bullets{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
}

.bullets li{
  position:relative;
  display:block;
  padding-left:44px;
  font-size:17px;
  line-height:1.6;
  color:var(--text);
}

.bullets li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:2px;
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--accent-light);
  color:var(--accent);
  font-weight:700;
  font-size:15px;
  border:2px solid rgba(var(--accent-rgb),.18);
  margin-top:0;
}

.bullets li b{
  font-weight:700;
  color:var(--text);
  display:inline;
  white-space:nowrap;
}

/* Bigger icons in about-page feature cards */
.kicker.kicker--icon{
  text-transform:none;
  letter-spacing:0;
}
.kicker.kicker--icon span:first-child{
  font-size:18px;
}

.steps-clean{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:24px;
  counter-reset:step;
}

.steps-clean li{
  padding-left:48px;
  position:relative;
  font-size:17px;
  line-height:1.7;
  color:var(--text);
}

.steps-clean li::before{
  content:counter(step);
  counter-increment:step;
  position:absolute;
  left:0;
  top:4px;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--accent);
  color:#ffffff;
  font-weight:700;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-md);
}

.steps-clean li b{
  font-weight:600;
  display:block;
  margin-bottom:8px;
  font-size:18px;
}

.inline-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:var(--space-md);
}

@media (max-width:960px){
  .feature-row{
    grid-template-columns:1fr;
    gap:var(--space-xl);
  }
}

/* ============================================
   MORTGAGE
   ============================================ */

.mortgage{
  max-width:1000px;
  margin:0 auto;
}

.mortgage__head{
  text-align:center;
  margin-bottom:var(--space-xl);
}

.mortgage__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-xl);
}

.mortgage__col{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:var(--space-lg);
  box-shadow:var(--shadow);
}

.mortgage__col .kicker{
  margin-bottom:var(--space-sm);
}

.mortgage__col .list{
  list-style:none;
  padding:0;
  margin:var(--space-md) 0 0;
  display:grid;
  gap:10px;
}

.mortgage__col .list li{
  padding-left:24px;
  position:relative;
  color:var(--text-light);
  font-size:16px;
  line-height:1.6;
}

.mortgage__col .list li::before{
  content:"•";
  position:absolute;
  left:8px;
  color:var(--accent);
  font-weight:800;
}

@media (max-width:768px){
  .mortgage__grid{
    grid-template-columns:1fr;
    gap:var(--space-lg);
  }
}

/* ============================================
   CTA
   ============================================ */

.cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-xl);
  padding:var(--space-xl);
  background:var(--bg-alt);
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
}

.cta .h2{
  margin-bottom:var(--space-sm);
}

.cta__actions{
  display:flex;
  gap:12px;
  flex-shrink:0;
}

@media (max-width:768px){
  .cta{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
    padding:var(--space-lg);
  }
  .cta__actions{
    width:100%;
    flex-direction:column;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer{
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  padding:var(--space-2xl) 0 var(--space-xl);
}

.footer__grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:var(--space-xl);
}

.footer__brand{
  font-size:24px;
  font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:var(--space-sm);
  color:var(--text);
}

.footer__title{
  font-size:16px;
  font-weight:600;
  margin-bottom:var(--space-sm);
  color:var(--text);
}

.footer a{
  display:block;
  color:var(--muted);
  font-size:15px;
  margin-bottom:8px;
  transition:color .2s ease;
}

.footer a:hover{
  color:var(--text);
}

.footer__bottom{
  margin-top:var(--space-xl);
  padding-top:var(--space-lg);
  border-top:1px solid var(--line);
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

@media (max-width:768px){
  .footer__grid{
    grid-template-columns:1fr;
    gap:var(--space-lg);
  }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

#callbackModal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:var(--space-md);
}

#callbackModal.open{
  display:flex;
}

#callbackModal .modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(4px);
}

#callbackModal .modal__card,
#callbackModal .modal__panel{
  position:relative;
  width:100%;
  max-width:520px;
  max-height:90vh;
  overflow-y:auto;
  background:#ffffff;
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-lg);
  padding:var(--space-xl);
  z-index:1;
}

#callbackModal .modal__header,
#callbackModal .modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:var(--space-md);
}

#callbackModal .modal__close{
  position:absolute;
  top:var(--space-md);
  right:var(--space-md);
  width:40px;
  height:40px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--muted);
  font-size:24px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .2s ease;
}

#callbackModal .modal__close:hover{
  background:var(--accent-light);
  border-color:var(--accent);
  color:var(--text);
}

#callbackModal .modal__title{
  font-size:28px;
  font-weight:700;
  margin-bottom:var(--space-sm);
  color:var(--text);
}

.form{
  display:grid;
  gap:var(--space-md);
  margin-top:var(--space-md);
}

.field{
  display:grid;
  gap:8px;
}

.field span{
  font-size:14px;
  font-weight:600;
  color:var(--text);
}

.field input,
.field textarea{
  width:100%;
  padding:14px 18px;
  font-size:15px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  background:#ffffff;
  color:var(--text);
  transition:all .2s ease;
  font-family:inherit;
}

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--accent-light);
}

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

/* ============================================
   FLOATING BUTTONS
   ============================================ */

.float{
  position:fixed;
  right:var(--space-md);
  bottom:var(--space-md);
  z-index:999;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.fab{
  width:56px;
  height:56px;
  border-radius:50%;
  /* Use neutral pill so dark monochrome icons look clean */
  background:#ffffff;
  color:var(--text);
  border:1px solid rgba(17,17,17,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-lg);
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Icon inside circle */
.fab__img{
  width:26px;
  height:26px;
  object-fit:contain;
  display:block;
}

.fab:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:var(--shadow-hover);
  background:#ffffff;
}

.fab svg{
  width:26px;
  height:26px;
  /* Our messenger icons are stroke-based for a clean monochrome look */
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Avito mark is dots (filled) */
.fab--avito svg{
  fill:currentColor;
  stroke:none;
}

@media (max-width:480px){
  .fab{
    width:52px;
    height:52px;
  }
  .fab__img{ width:24px; height:24px; }
}


.fab span{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width:640px){
  .float{
    right:var(--space-sm);
    bottom:var(--space-sm);
  }
}

/* ============================================
   QUIZ
   ============================================ */

.quiz__wrap{
  max-width:1000px;
  margin:0 auto;
}

/* ============================================
   ADDITIONAL ELEMENTS
   ============================================ */

.link{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:4px;
  transition:color .2s ease;
}

.link:hover{
  color:var(--accent-hover);
}

/* Prevent local utility classes from restyling Marquiz popup UI */
:where([id*="marquiz"], [class*="marquiz"]) .btn,
:where([id*="marquiz"], [class*="marquiz"]) .btn--primary,
:where([id*="marquiz"], [class*="marquiz"]) .btn--ghost,
:where([id*="marquiz"], [class*="marquiz"]) .form,
:where([id*="marquiz"], [class*="marquiz"]) .field,
:where([id*="marquiz"], [class*="marquiz"]) .field span,
:where([id*="marquiz"], [class*="marquiz"]) .field input,
:where([id*="marquiz"], [class*="marquiz"]) .field textarea{
  all: revert;
}

.spacer{
  height:24px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:var(--space-xl);
}

.grid--3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:var(--space-lg);
}

.work{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:all .3s ease;
  display:flex;
  flex-direction:column;
}

.work:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-hover);
}

.work img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition:transform .6s ease;
}

.work:hover img{
  transform:scale(1.05);
}

.work__body{
  padding:var(--space-lg);
}

.work__title{
  font-size:20px;
  font-weight:600;
  margin-bottom:8px;
  color:var(--text);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-weight:500;
  font-size:15px;
}

.pill b{
  color:var(--text);
  font-weight:600;
}

.crumb{
  font-size:13px;
  color:var(--muted);
  font-weight:500;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.steps{
  display:grid;
  gap:var(--space-lg);
  margin-top:var(--space-md);
}

.step{
  display:flex;
  gap:var(--space-md);
  align-items:flex-start;
}

.step__n{
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--accent);
  color:#ffffff;
  font-weight:700;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  box-shadow:var(--shadow-md);
}

.step__t{
  font-size:20px;
  font-weight:600;
  margin-bottom:6px;
  color:var(--text);
}

.step__d{
  font-size:16px;
  line-height:1.6;
  color:var(--text-light);
}

@media (max-width:768px){
  .grid-2,
  .grid--3{
    grid-template-columns:1fr;
    gap:var(--space-lg);
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center{
  text-align:center;
}

.mini__note{
  font-size:12px;
  color:var(--muted-light);
  margin-top:8px;
}

/* Splash screen */
.splash{
  position:fixed;
  inset:0;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10000;
  transition:opacity .5s ease, visibility .5s ease;
}

.splash.hide,
.splash.hidden{
  opacity:0;
  visibility:hidden;
}

.splash__logo{
  width:min(280px, 60vw);
  height:auto;
  animation:splashPulse .9s ease-in-out infinite;
}

.splash.hide .splash__logo,
.splash.hidden .splash__logo{
  animation:none;
}

@keyframes splashPulse{
  0%{ transform:scale(.97); }
  50%{ transform:scale(1.03); }
  100%{ transform:scale(.97); }
}

/* Smooth scroll */
@media (prefers-reduced-motion:no-preference){
  html{
    scroll-behavior:smooth;
  }
}

/* ------------------------------
   WORKS: gallery carousel + auto marquee
--------------------------------- */

.works-carousel{
  position:relative;
  margin-top:18px;
}

.works-carousel__viewport{
  overflow:hidden;
  border-radius:0;
  background:transparent;
  outline:none;
}

.works-carousel__track{
  display:flex;
  gap:24px;
  padding:0;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}

.works-carousel__track::-webkit-scrollbar{ display:none; }
.works-carousel__track{ scrollbar-width:none; }

.works-card{
  flex:0 0 auto;
  width:380px;
  height:520px;
  border-radius:26px;
  overflow:hidden;
  scroll-snap-align:start;
  background:#e5e7eb;
  box-shadow:var(--shadow-md);
}

.works-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.works-card:hover img{ transform:scale(1.03); }

.works-carousel__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  border:1px solid rgba(0,0,0,.12);
  box-shadow:var(--shadow-md);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  z-index:10;
  pointer-events:auto;
  opacity:.0;
  transition:opacity .25s ease, transform .25s ease;
}

.works-carousel:hover .works-carousel__btn{ opacity:1; }
.works-carousel__btn:hover{ transform:translateY(-50%) scale(1.08); }
.works-carousel__btn.prev{ left:10px; }
.works-carousel__btn.next{ right:10px; }

@media (max-width: 980px){
  .works-card{ width:320px; height:460px; }
}

@media (max-width: 560px){
  .works-carousel__btn{ display:none; }
  .works-carousel__track{ gap:14px; padding:14px; }
  .works-card{ width:260px; height:380px; border-radius:22px; }
}

.works-marquee{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:#f3f4f6;
  padding:18px 0;
}

.works-marquee__track{
  display:flex;
  gap:22px;
  align-items:center;
  width:max-content;
  animation:worksMarquee var(--marquee-duration, 60s) linear infinite;
  padding-left:22px;
}

.works-marquee:hover .works-marquee__track{ animation-play-state:paused; }

.works-marquee__item{
  width:320px;
  height:210px;
  border-radius:26px;
  overflow:hidden;
  background:#e5e7eb;
  box-shadow:var(--shadow-md);
  flex:0 0 auto;
}

.works-marquee__item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@keyframes worksMarquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@media (max-width: 560px){
  .works-marquee__item{ width:250px; height:170px; border-radius:22px; }
}

/* ============================================
   MOBILE POLISH (CENTRED HEADER + BETTER HERO)
   ============================================ */

@media (max-width: 768px){
  /* Header: centered and tidy */
  .header-top__row{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:10px;
    padding:14px 0;
    min-height:auto;
  }
  .brand{ justify-content:center; padding:0; }
  .brand img{ width:130px; height:52px; }
  .header-top__right{
    width:100%;
    flex-direction:column;
    align-items:center;
    gap:10px;
  }
  .header-top__right .btn{ width:100%; max-width:320px; }
  .header-top__contacts{ align-items:center; }
  .header-top__contacts a{ justify-content:center; }
  .header-top__contacts a[href^="mailto:"]{ display:block; font-size:13px; }

  /* Burger button centered */
  .burger{
    left:50%;
    right:auto;
    transform:translateX(-50%);
  }

  /* Mobile panel */
  .mobile-panel{ text-align:center; }
  .mobile-panel a{ justify-content:center; }

  /* Sections: center headings */
  .section__head{ flex-direction:column; align-items:center; text-align:center; gap:10px; }
  .section__head .link{ white-space:nowrap; }
}

@media (max-width: 520px){
  /* Hero: fit text, stack actions */
  .hero{ padding:16px 0 10px; }
  .hero-box{
    min-height:0;
    height:auto;
    border-radius:26px;
  }
  .hero-box__content{ padding:22px 18px 18px; }
  .hero__title{
    font-size:34px;
    line-height:1.05;
    max-width:none;
  }
  .hero__text{ font-size:15px; }
  .hero__actions{ flex-direction:column; align-items:stretch; }
  .hero__actions .btn{ width:100%; }
  .hero__bullets{ flex-wrap:wrap; gap:10px 16px; }

  /* Floating buttons smaller and away from content */
  .float{ gap:10px; }
  .fab{ width:50px; height:50px; }
  .fab svg{ width:24px; height:24px; }
}

@media (max-width: 380px){
  .hero__title{ font-size:30px; }
}

/* Prices: keep currency on the same line */
.price__value{ white-space:nowrap; }

/* --- FIX: catalog cards grid layout --- */
.catalog-grid, .catalog__grid, .catalog-list, .catalog__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px){
  .catalog-grid, .catalog__grid, .catalog-list, .catalog__list{
    grid-template-columns: 1fr;
  }
}

/* Marquiz style isolation (must stay at end of file) */
body :where([id*="marquiz"], [class*="marquiz"]) .btn,
body :where([id*="marquiz"], [class*="marquiz"]) .btn--primary,
body :where([id*="marquiz"], [class*="marquiz"]) .btn--ghost,
body :where([id*="marquiz"], [class*="marquiz"]) .form,
body :where([id*="marquiz"], [class*="marquiz"]) .field,
body :where([id*="marquiz"], [class*="marquiz"]) .field span,
body :where([id*="marquiz"], [class*="marquiz"]) .field input,
body :where([id*="marquiz"], [class*="marquiz"]) .field textarea{
  all: revert !important;
}
