    :root{
      --primary-black:#1a1a1a;
      --dark-black:#0d0d0d;
      --primary-yellow:#ffd700;
      --text-dark:#1a1a1a;
      --text-gray:#666;
      --light-gray:#f5f5f5;
      --white:#fff;
      --border-radius:16px;
      --box-shadow:0 12px 28px rgba(0,0,0,0.08);
      --transition:all 0.2s ease;
    }

    *,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
    html{scroll-behavior:smooth;font-size:16px;}
    body{
      font-family:Nunito,system-ui,-apple-system,sans-serif;
      line-height:1.6;color:var(--text-dark);
      background:var(--white);overflow-x:hidden;
    }

    .skip-link{
      position:absolute;top:-40px;left:6px;
      background:var(--primary-yellow);color:var(--text-dark);
      padding:8px;text-decoration:none;z-index:100;
      border-radius:4px;
    }
    .skip-link:focus{top:6px;}

    .header{
      background:var(--white);box-shadow:var(--box-shadow);
      position:fixed;top:0;left:0;width:100%;z-index:1000;
    }
    .headercontainer{
      max-width:1200px;margin:0 auto;padding:1rem 2rem;
      display:flex;justify-content:space-between;align-items:center;
      gap:1rem;flex-wrap:wrap;
    }
    .logoimg{height:56px;width:auto;display:block;object-fit:contain;}
    .navlist{display:flex;list-style:none;gap:2rem;flex-wrap:wrap;margin:0;}
    .navlink{
      color:var(--text-dark);text-decoration:none;font-weight:600;
      transition:var(--transition);border-bottom:2px solid transparent;
      padding-bottom:5px;position:relative;
    }
    .navlink:hover,.navlink:focus{
      color:var(--primary-yellow);border-bottom-color:var(--primary-yellow);
      outline:none;
    }
    .phone-btn{
      background:var(--primary-yellow);color:var(--text-dark);
      padding:12px 20px;border-radius:10px;text-decoration:none;
      font-weight:800;transition:var(--transition);
      box-shadow:0 6px 18px rgba(255,215,0,0.25);
      display:inline-block;white-space:nowrap;
    }
    .phone-btn:hover,.phone-btn:focus{
      transform:translateY(-1px);
      box-shadow:0 10px 24px rgba(255,215,0,0.35);
      outline:2px solid var(--primary-yellow);
      outline-offset:2px;
    }

    .hero{
      background:radial-gradient(1200px 500px at 50% 0, #ffffff 0, #f5f5f5 55%, #eeeeee 100%);
      padding:110px 1.5rem 50px;text-align:center;margin-top:70px;
    }
    .herotitle{
      font-size:clamp(2rem,5vw,2.7rem);
      margin-bottom:0.8rem;color:var(--primary-black);
      letter-spacing:0.2px;font-weight:900;
    }
    .herosubtitle{
      font-size:clamp(1rem,3vw,1.15rem);
      margin:0 auto 1.2rem;max-width:820px;color:var(--text-gray);
      padding:0 1rem;
    }
    .herohighlight{color:var(--primary-yellow);}
    .offer{
      text-align:center;margin:1.2rem auto 0;padding:1rem 1.5rem;
      background:linear-gradient(135deg, rgba(255,215,0,0.10), rgba(255,255,255,0.88));
      border-radius:20px;max-width:720px;box-shadow:var(--box-shadow);
    }
    .offerbadge{font-size:2.4rem;margin-bottom:0.3rem;animation:bounce 2s infinite;}
    @keyframes bounce{
      0%,20%,50%,80%,100%{transform:translateY(0);}
      40%{transform:translateY(-12px);}
      60%{transform:translateY(-6px);}
    }
    .offertitle{
      font-size:clamp(1.4rem,4vw,1.85rem);
      font-weight:900;color:var(--primary-black);margin-bottom:0.25rem;
    }
    .offertext{
      font-size:1.05rem;color:#d63031;font-weight:900;
      text-transform:uppercase;letter-spacing:0.5px;margin-bottom:1.5rem;
    }

    .btn{
      position:relative;display:inline-block;
      padding:16px 34px;border-radius:999px;text-decoration:none;
      font-weight:900;font-size:1.05rem;overflow:hidden;
      transform:translateZ(0);transition:var(--transition);
      border:0;cursor:pointer;text-align:center;
    }
    .btn--yellow{
      color:#1a1a1a;
      background:linear-gradient(180deg, #ffef7a 0, #ffd700 55%, #ffc400 100%);
      box-shadow:0 12px 28px rgba(0,0,0,.14), 0 0 0 0 rgba(255,215,0,.55);
    }
    .btn--secondary{
      background:#fff;color:var(--primary-black);
      box-shadow:0 10px 24px rgba(0,0,0,0.08);
      border:1px solid rgba(0,0,0,0.08);
    }
    .btn::before{
      content:"";position:absolute;top:-40px;left:-60px;
      width:40px;height:180px;background:rgba(255,255,255,.55);
      transform:rotate(25deg);filter:blur(1px);
    }
    .btn:hover,.btn:focus{
      transform:translateY(-2px);
      box-shadow:0 16px 36px rgba(0,0,0,.18), 0 0 0 6px rgba(255,215,0,.55);
      filter:saturate(1.05);outline:none;
    }
    .btn:hover::before{left:120%;transition:left .55s ease;}

    @media (prefers-reduced-motion: no-preference){
      .btn--animated{animation:ctaPulseGlow 1.6s ease-in-out infinite;}
      @keyframes ctaPulseGlow{
        0%,100%{transform:translateY(0) scale(1);box-shadow:0 12px 28px rgba(0,0,0,.14), 0 0 0 0 rgba(255,215,0,0);}
        50%{transform:translateY(-1px) scale(1.02);box-shadow:0 16px 36px rgba(0,0,0,.18), 0 0 0 10px rgba(255,215,0,.22);}
      }
    }

    .section{padding:60px 1.5rem;max-width:1200px;margin:0 auto;}
    .section--white{background:var(--white);}
    .section--gray{background:var(--light-gray);}
    .sectiontitle{
      font-size:clamp(1.8rem,4vw,2.05rem);
      text-align:center;margin-bottom:1.6rem;color:var(--primary-black);font-weight:900;
    }

    .grid{display:grid;gap:1.6rem;}
    .grid--auto-fit{grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));}
    .grid--projects{grid-template-columns:repeat(3, minmax(240px, 1fr));gap:20px;}

    .card{
      background:var(--white);padding:1.6rem;border-radius:var(--border-radius);
      box-shadow:var(--box-shadow);transition:var(--transition);
    }
    .card:hover{transform:translateY(-6px);box-shadow:0 18px 38px rgba(0,0,0,0.12);}
    .cardicon{
      width:96px;height:96px;border-radius:50%;
      margin:0 auto 1.25rem;display:flex;align-items:center;justify-content:center;
      background:linear-gradient(135deg, var(--primary-yellow), #ffed4a);
      box-shadow:0 12px 26px rgba(255,215,0,0.25);
      font-size:2.6rem;color:#111;
    }
    .cardicon svg{width:44px;height:44px;display:block;}
    .cardtitle{font-size:1.35rem;margin-bottom:0.75rem;color:var(--primary-black);text-align:center;}
    .cardtext{color:var(--text-gray);text-align:center;}

    .project-card{
      position:relative;border-radius:var(--border-radius);overflow:hidden;
      cursor:pointer;border:1px solid rgba(0,0,0,.08);
      box-shadow:var(--box-shadow);background:#e9e9e9;
      transition:var(--transition);outline:none;
    }
    .project-card:hover,.project-card:focus{
      transform:translateY(-6px);box-shadow:0 24px 58px rgba(0,0,0,.18);
      outline:2px solid var(--primary-yellow);outline-offset:2px;
    }
    .project-card__img{width:100%;height:240px;object-fit:cover;display:block;}
    .project-card__overlay{
      position:absolute;left:0;right:0;bottom:0;padding:14px 14px 12px;
      color:#fff;background:linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.72) 70%, rgba(0,0,0,.82) 100%);
    }
    .project-card__title{font-weight:900;font-size:1.05rem;line-height:1.2;margin-bottom:6px;}
    .project-card__price{font-weight:900;font-size:1.05rem;color:var(--primary-yellow);}
    .project-card__badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
    .badge{
      font-size:0.78rem;padding:6px 10px;border-radius:999px;
      background:rgba(255,255,255,.12);
      border:1px solid rgba(255,255,255,.18);
      backdrop-filter:blur(8px);
    }

    .faq{max-width:900px;margin:0 auto;}
    .faqitem{background:var(--white);margin-bottom:12px;border-radius:12px;overflow:hidden;box-shadow:var(--box-shadow);}
    .faqquestion{
      padding:1rem 1.25rem;cursor:pointer;font-weight:800;background:#eee;
      position:relative;user-select:none;border:none;width:100%;
      text-align:left;transition:var(--transition);
    }
    .faqquestion:hover,.faqquestion:focus{background:#e0e0e0;outline:2px solid var(--primary-yellow);outline-offset:-2px;}
    .faqquestion::after{
      content:"▾";position:absolute;right:1.25rem;top:50%;
      transform:translateY(-50%);font-size:1.5rem;color:var(--primary-black);
      transition:var(--transition);
    }
    .faqitem--active .faqquestion::after{transform:translateY(-50%) rotate(180deg);}
    .faqanswer{
      max-height:0;overflow:hidden;transition:max-height 0.28s ease, padding 0.28s ease;
      background:var(--white);padding:0 1.25rem;
    }
    .faqitem--active .faqanswer{max-height:340px;padding:1.25rem 1.25rem;}

    .review-card{
      background:var(--white);padding:1.6rem;border-radius:var(--border-radius);
      box-shadow:var(--box-shadow);
    }
    .review-card__stars{color:var(--primary-yellow);font-size:1.2rem;margin-bottom:1rem;}
    .review-card__author{font-size:1.1rem;margin-bottom:0.5rem;font-weight:600;}
    .review-card__text{color:var(--text-gray);font-size:0.95rem;}

    .modal{position:fixed;inset:0;display:none;z-index:2000;backdrop-filter:blur(6px);}
    .modal--open{display:flex;align-items:center;justify-content:center;padding:24px 14px;}
    .modalbackdrop{position:absolute;inset:0;background:rgba(0,0,0,.65);}
    .modaldialog{
      position:relative;width:min(1040px, 100%);max-height:92vh;
      background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.25);
      border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);
      overflow:visible;display:flex;flex-direction:column;
    }
    .modalgrid{display:grid;grid-template-columns:1.2fr 1fr;min-height:0;max-height:92vh;overflow:hidden;}
    .modalmedia{
      position:relative;background:#111;min-height:520px;overflow:hidden;isolation:isolate;
      display:flex;align-items:center;justify-content:center;
    }
    .modalimg{width:100%;height:100%;display:block;object-fit:contain;background:#111;position:relative;z-index:1;}
    .spec-slide{
      display:none;position:absolute;inset:0;z-index:2;
      overflow:auto;padding:18px;background:rgba(17,17,17,0.72);
      color:#fff;
    }
    .spec-slide.is-active{display:block;}
    .spec-slide h3{font-size:1.05rem;margin-bottom:10px;font-weight:900;}
    .spec-slide p{opacity:0.92;margin-bottom:12px;}
    .spec-list{display:grid;gap:10px;}
    .spec-item{
      background:rgba(255,255,255,0.10);
      border:1px solid rgba(255,255,255,0.18);
      border-radius:14px;padding:12px;
    }
    .spec-label{display:block;font-size:0.82rem;opacity:0.85;margin-bottom:2px;font-weight:900;color:var(--primary-yellow);}
    .modalcontrols{
      position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;
      padding:0 12px;pointer-events:none;z-index:10;
    }
    .modalclose,.modalnav{
      border-radius:50%;border:1px solid rgba(255,255,255,.25);
      background:rgba(0,0,0,.45);color:#fff;cursor:pointer;padding:0;
      pointer-events:auto;transition:var(--transition);
    }
    .modalclose{position:absolute;top:12px;right:12px;width:42px;height:42px;font-size:24px;line-height:1;z-index:20;}
    .modalnav{width:46px;height:46px;font-size:22px;}
    .modalclose:hover,.modalclose:focus,.modalnav:hover,.modalnav:focus{
      background:rgba(0,0,0,.65);outline:2px solid var(--primary-yellow);outline-offset:2px;
    }

    .modalbody{padding:18px 18px 16px;overflow-y:auto;overflow-x:hidden;max-height:92vh;-webkit-overflow-scrolling:touch;}
    .modaltitle{font-size:1.35rem;font-weight:900;margin-bottom:8px;}
    .modalprice{font-weight:900;font-size:1.25rem;color:#111;margin-bottom:10px;}
    .modalnote{color:rgba(0,0,0,.62);font-size:0.92rem;margin-bottom:18px;}
    .modalspecs{display:grid;gap:10px;margin-bottom:20px;}
    .modalspec{padding:12px;border-radius:14px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.7);}
    .modalspec-label{display:block;font-size:0.82rem;color:rgba(0,0,0,.60);margin-bottom:2px;font-weight:900;}
    .modalactions{display:flex;gap:10px;flex-wrap:wrap;}
    .slide-indicator{
      display:inline-flex;align-items:center;gap:8px;
      font-weight:800;font-size:0.9rem;color:rgba(0,0,0,.7);
      margin-bottom:10px;
    }
    .pill{
      display:inline-block;padding:6px 10px;border-radius:999px;
      background:rgba(255,215,0,0.18);border:1px solid rgba(0,0,0,0.06);
      color:#111;font-weight:900;font-size:0.78rem;
    }

     @media (max-width:768px){
  .headercontainer{flex-direction:column;gap:0.8rem;padding:0.8rem 1rem;}
  .navlist{display:none;}
  .phone-btn{width:100%;text-align:center;}
  .hero{padding:92px 1rem 42px;}
  .herotitle{font-size:clamp(1.75rem,6vw,2.5rem);}
  .herosubtitle{font-size:clamp(0.95rem,3.5vw,1.1rem);}
  .offer{padding:1rem 1rem;margin:1rem auto 0;}
  .offertitle{font-size:clamp(1.25rem,4.5vw,1.75rem);}
  .offertext{font-size:0.95rem;}
  .btn{width:100%;text-align:center;padding:16px 18px;}
  .section{padding:40px 1rem;}
  .sectiontitle{font-size:clamp(1.5rem,5vw,1.9rem);}
  .card{padding:1.25rem;}
  .cardicon{width:80px;height:80px;font-size:2.2rem;}
  .cardicon svg{width:36px;height:36px;}
  .cardtitle{font-size:1.2rem;}
  .modalactions .btn{width:100%;text-align:center;}

  /* Мобильная модалка - фото сверху, контент снизу */
  .modaldialog{
    width:calc(100% - 20px);
    max-height:95vh;
    margin:10px;
    display:flex;
    flex-direction:column;
  }

  .modalgrid{
    display:flex;
    flex-direction:column;
    min-height:0;
    max-height:95vh;
    overflow:hidden;
  }

  .modalmedia{
    position:relative;
    background:#111;
    min-height:280px;
    max-height:40vh;
    overflow:hidden;
    flex-shrink:0;
  }

  .modalimg{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    background:#111;
    cursor:pointer;
  }

  .modalbody{
    padding:16px;
    overflow-y:auto;
    overflow-x:hidden;
    max-height:55vh;
    -webkit-overflow-scrolling:touch;
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .modaltitle{
    font-size:1.25rem;
    font-weight:900;
    margin-bottom:4px;
    line-height:1.3;
  }

  .modalprice{
    font-weight:900;
    font-size:1.2rem;
    color:#111;
    margin-bottom:8px;
  }

  .modalspecs{
    display:grid;
    gap:10px;
    margin-bottom:12px;
  }

  .modalspec{
    padding:12px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.08);
    background:rgba(255,255,255,.7);
  }

  .modalspec-label{
    display:block;
    font-size:0.8rem;
    color:rgba(0,0,0,.60);
    margin-bottom:4px;
    font-weight:700;
  }

  .modalactions{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:auto;
    padding-top:8px;
  }

  .modalactions > [data-marquiz-id]{
    width:100%;
  }


  .modalclose{
    top:10px;
    right:10px;
    width:36px;
    height:36px;
    font-size:20px;
    background:rgba(0,0,0,.6);
    z-index:20;
  }
}
    @media (max-width:520px){
      .grid--projects{grid-template-columns:1fr;}
      .hero{padding:85px 0.75rem 35px;}
      .offer{padding:0.875rem 0.875rem;}
      .section{padding:30px 0.75rem;}
      .card{padding:1rem;}
      .cardicon{width:72px;height:72px;font-size:2rem;}
      .cardicon svg{width:32px;height:32px;}
      .project-card__img{height:220px;}
      .modalmedia{min-height:250px;}
      .modaldialog{width:calc(100% - 16px);margin:8px;max-height:96vh;}
      .modalbody{padding:14px;font-size:0.9rem;}
    }

    @media (prefers-reduced-motion: reduce){
      *,*::before,*::after{
        animation-duration:0.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:0.01ms !important;
      }
    }

    .focus-trap{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none;}
    .visually-hidden{
      position:absolute !important;width:1px !important;height:1px !important;
      padding:0 !important;margin:-1px !important;overflow:hidden !important;
      clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;
    }
    .text-center{text-align:center;}
    .mb-1{margin-bottom:1rem;}
  .mb-2{margin-bottom:2rem;}

/* Header contacts — иконки телефона, ТГ, ВК */
.header-contacts {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-yellow);
  color: var(--primary-black);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-icon:hover,
.contact-icon:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.35);
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

.contact-icon .vk-text {
  display: inline-block;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .header-contacts {
    gap: 8px;
  }
  
  .contact-icon {
    width: 38px;
    height: 38px;
  }
  
  .contact-icon svg {
    width: 20px;
    height: 20px;
  }
}
  

/* ===== FOOTER (GRID + CENTER) ===== */
footer.footer{background:#121212;color:#fff;}

.footer__inner{
  max-width:1100px;
  margin:0 auto;
  padding:42px 16px;

  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-areas:"left right";
  column-gap:56px;
  row-gap:22px;
  align-items:start;
  justify-items:center;

  text-align:center;
}

.footer__col{width:100%;}
.footer__col--left{grid-area:left;}
.footer__col--right{grid-area:right;padding-left:40px;border-left:1px solid rgba(255,255,255,0.10);}

.footer__title{color:#f5c400;font-weight:600;margin:0 0 14px;}
.footer__text{margin:8px 0;line-height:1.6;opacity:.92;}
.footer__text--muted{opacity:.75;}
.footer__text--spaced{margin-top:14px;}

.footer__link{display:block;margin:8px 0;color:#fff;text-decoration:none;opacity:.95;}
.footer__link:hover{text-decoration:underline;}
.footer__mut{opacity:.75;}

.footer__bottom{border-top:1px solid rgba(255,255,255,0.08);padding:14px 16px;text-align:center;opacity:.72;}

@media (max-width:700px){
  .footer__inner{grid-template-columns:1fr;grid-template-areas:"left" "right";justify-items:center;}
  .footer__col--right{padding-left:0;border-left:0;border-top:1px solid rgba(255,255,255,0.10);padding-top:16px;}
}
/* Центрируем кнопку "Позвонить" на десктопе */
@media (min-width: 769px) {
  .modalactions .btn--secondary {
    margin: 0 auto;
    display: block;
  }
}