/* ROKO SYSTEMS: стилистика Bricknet как у bestkam, фирменный красный из лого */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../assets/fonts/jakarta-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../assets/fonts/jakarta-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../assets/fonts/inter-latin-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../assets/fonts/inter-latin-ext-normal.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0; }

:root {
  --bg: #F2F2F0;
  --ink: #17181A;
  --mut: #6C6F73;
  --line: #E3E3E0;
  --accent: #E31E24;
  --accent-soft: rgba(227, 30, 36, 0.08);
  --white: #FFFFFF;
  --dark: #1C1E22;
  --sans: 'Plus Jakarta Sans', Inter, 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── пилюльные лейблы ── */
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }

/* ── hero с плавающей шапкой ── */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px); transform: scale(1.03); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,18,.8), rgba(15,16,18,.66) 40%, rgba(15,16,18,.85)); }

.hdr { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 26px 24px 0; }
.hdr__logo img { height: 40px; width: auto; }
.hdr__nav { display: flex; gap: 6px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); border-radius: 999px; padding: 6px; }
.hdr__nav a { color: #fff; font-size: 14.5px; font-weight: 500; padding: 9px 18px; border-radius: 999px; transition: background .2s; }
.hdr__nav a:hover, .hdr__nav a.is-active { background: rgba(255,255,255,.22); }
.hdr__cta { color: var(--ink); background: #fff; font-size: 14.5px; font-weight: 600; border-radius: 0; padding: 11px 24px; transition: background .2s, color .2s; }
.hdr__cta:hover { background: var(--accent); color: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 6; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
.mnav { display: none; }

.hero__in { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px 90px; color: #fff; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border-radius: 999px; font-size: 13.5px; padding: 8px 18px; margin-bottom: 26px; }
.hero__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -1px; max-width: 800px; }
.hero__lead { margin-top: 20px; max-width: 560px; font-size: 16.5px; color: rgba(255,255,255,.85); }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; border-radius: 0; padding: 13px 24px; transition: background .2s, color .2s, border-color .2s; }
.btn--accent { background: var(--white); color: var(--ink); }
.btn--accent:hover { background: var(--accent); color: #fff; }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: #B81419; }
.btn--line { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn i { font-style: normal; transition: transform .2s; }
.btn:hover i { transform: translateX(3px); }
.hero__in .btn { margin-top: 34px; }

/* ── полоса «лого» = имена реализаций ── */
.brands { background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.brands__in { padding: 26px 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: inline-block; animation: mq 40s linear infinite; }
.brands span { color: #9B9EA3; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; padding: 0 34px; }
.brands span::after { content: '·'; color: var(--accent); margin-left: 34px; }
.brands:hover .brands__track { animation-play-state: paused; }

/* ── секции ── */
.sec { padding: 96px 0; }
.sec--white { background: var(--white); }
.sec--dark { background: var(--dark); color: #fff; }
.sec h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.16; font-weight: 700; letter-spacing: -0.5px; }
.sec__lead { color: var(--mut); max-width: 620px; font-size: 16.5px; margin-top: 14px; }
.center { text-align: center; }
.center .sec__lead { margin-left: auto; margin-right: auto; }
.hl { color: var(--accent); }

/* ── about: statement + статы ── */
.about__row { display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: start; }
.about__row h2 { max-width: 720px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 64px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat b { display: block; font-size: clamp(34px, 3.4vw, 46px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.stat span { color: var(--mut); font-size: 14.5px; }

/* ── услуги: номерная сетка с фото ── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; margin-top: 60px; }
.svc { border-top: 1px solid var(--line); padding-top: 20px; }
.svc__no { color: var(--accent); font-weight: 600; font-size: 14px; display: block; margin-bottom: 12px; }
.svc h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--mut); font-size: 14.5px; }
.svc--photo { border-top: 0; padding-top: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.svc--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── тёмный слайдер реализаций ── */
.slider { position: relative; }
.slider__frame { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16 / 7.2; background: #000; }
.slider__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; position: absolute; inset: 0; }
.slider__frame img.is-on { opacity: 1; }
.slider__cap { position: absolute; left: 26px; bottom: 24px; right: 40%; color: #fff; font-size: 14.5px; background: rgba(15,16,18,.55); backdrop-filter: blur(8px); border-radius: 10px; padding: 14px 18px; z-index: 2; }
.slider__nav { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 22px; }
.slider__bars { display: flex; gap: 8px; flex: 1; }
.slider__bar { height: 3px; flex: 1; max-width: 90px; background: rgba(255,255,255,.18); border-radius: 2px; position: relative; cursor: pointer; }
.slider__bar.is-on { background: var(--accent); }
.slider__bar span { position: absolute; top: 8px; left: 0; font-size: 12px; color: rgba(255,255,255,.5); }
.sec--dark .sec__lead { color: rgba(255,255,255,.65); }

/* ── процесс ── */
.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.proc { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.proc:first-child { border-top: 0; padding-top: 0; }
.proc__no { font-weight: 700; font-size: 15px; }
.proc__no em { font-style: normal; color: #B9BCC0; font-weight: 500; }
.proc h3 { font-size: 21px; font-weight: 700; margin: 10px 0 8px; }
.proc p { color: var(--mut); font-size: 14.5px; max-width: 520px; }
.proc.is-first { border-bottom: 2px solid var(--accent); }

/* ── ценности (Why) ── */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.val { background: var(--white); border-radius: 12px; padding: 30px 26px; }
.sec--white .val { background: var(--bg); }
.val__ic { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.val__ic svg { width: 22px; height: 22px; }
.val h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.val p { color: var(--mut); font-size: 14.5px; }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 54px auto 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 22px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '→'; color: var(--accent); transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { padding: 0 22px 18px; color: var(--mut); font-size: 14.5px; }

/* ── wycena CTA ── */
.quote { background: var(--dark); color: #fff; border-radius: 16px; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.quote h2 { font-size: clamp(26px, 3.2vw, 38px); }
.quote p { color: rgba(255,255,255,.7); margin-top: 12px; font-size: 15.5px; }
.quote__side { text-align: right; }
.quote__phone { display: block; font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.quote__phone:hover { color: var(--accent); }

/* ── контакты ── */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; margin-top: 54px; }
.contact__card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 30px 28px; }
.contact__card h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.contact__row { padding: 11px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; font-size: 15px; }
.contact__row b { min-width: 84px; color: var(--mut); font-weight: 500; font-size: 13.5px; padding-top: 2px; }
.contact__row a:hover { color: var(--accent); }

/* ── footer ── */
.foot { background: var(--dark); color: rgba(255,255,255,.6); font-size: 14.5px; }
.foot--cols .foot__in { max-width: 1180px; margin: 0 auto; padding: 52px 24px 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; align-items: start; }
.foot__brand img { height: 38px; margin-bottom: 14px; }
.foot__brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); max-width: 300px; }
.foot h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; }
.foot li { padding: 5px 0; }
.foot a:hover { color: var(--accent); }
.foot__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.foot__bottom-in { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.4); }

/* ── подстраницы ── */
.phero { background: var(--dark); color: #fff; }
.phero .hdr { padding-top: 26px; }
.phero__in { max-width: 1180px; margin: 0 auto; padding: 56px 24px 60px; }
.phero__crumb { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.phero__crumb a { color: rgba(255,255,255,.6); }
.phero__crumb a:hover { color: var(--accent); }
.phero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: -1px; }
.phero__lead { margin-top: 14px; color: rgba(255,255,255,.72); max-width: 640px; font-size: 16px; }

/* реализации-грид (страница) */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.projects--feature .proj:first-child { grid-column: span 2; }
.proj { position: relative; border-radius: 12px; background: var(--dark); overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj:hover img { transform: scale(1.045); }
.proj__cap { position: relative; z-index: 2; width: 100%; padding: 20px 20px 16px; background: linear-gradient(180deg, transparent, rgba(15,16,18,.9) 45%); color: #fff; }
.proj__cap b { font-size: 16.5px; font-weight: 700; display: block; }
.proj__cap span { font-size: 12.5px; color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.proj--text { background: var(--white); border: 1px solid var(--line); align-items: center; justify-content: center; text-align: center; padding: 26px; }
.proj--text .proj__cap { background: none; color: var(--ink); padding: 0; }
.proj--text .proj__cap span { color: var(--accent); }
.projects__more { margin-top: 40px; text-align: center; }

/* ── marquee (страница реализаций) ── */
.marquee { background: transparent; padding: 14px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; }
.marquee__track { display: inline-block; animation: mq 38s linear infinite; }
.marquee span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 600; }
.marquee b { color: var(--accent); font-weight: 600; padding: 0 16px; }
@keyframes mq { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ── reveal ── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ── мобильный док ── */
.dock { display: none; }
@media (max-width: 900px) {
  .dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: rgba(23,24,26,.94); backdrop-filter: blur(12px); border-radius: 14px; padding: 10px; gap: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
  .dock a { flex: 1; text-align: center; color: #fff; font-size: 13.5px; font-weight: 600; padding: 11px 4px; border-radius: 9px; }
  .dock a.is-accent { background: var(--accent); }
  body { padding-bottom: 74px; }
}

/* ── мобилка ── */
@media (max-width: 900px) {
  .hdr__nav, .hdr__cta { display: none; }
  .burger { display: block; }
  .mnav { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(15,16,18,.96); backdrop-filter: blur(10px); padding: 90px 30px; flex-direction: column; gap: 6px; }
  .mnav.is-open { display: flex; }
  .mnav a { color: #fff; font-size: 22px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero { min-height: 86vh; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); line-height: 1.06; letter-spacing: -1.5px; }
  .hero__in { padding-top: 30px; }
  .hero__badge { margin-bottom: 20px; }
  .hero__lead { font-size: 15.5px; margin-top: 16px; }
  .sec { padding: 60px 0; }
  .about__row { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
  .services { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .slider__frame { aspect-ratio: 4 / 3.4; }
  .slider__cap { right: 20px; }
  .process { grid-template-columns: 1fr; gap: 30px; }
  .values { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .quote { grid-template-columns: 1fr; text-align: left; }
  .quote__side { text-align: left; }
  .contact { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .projects--feature .proj:first-child { grid-column: span 1; }
  .foot--cols .foot__in { grid-template-columns: 1fr; gap: 26px; padding: 36px 20px 28px; }
  .foot__bottom-in { flex-direction: column; gap: 4px; text-align: center; }
  .faq summary { padding: 16px 18px; font-size: 15px; }
}

/* ── переключатель языков ── */
.lang { display: flex; gap: 2px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); border-radius: 999px; padding: 4px; }
.lang a { color: rgba(255,255,255,.75); font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
.lang a.is-on { background: #fff; color: var(--ink); }
.lang a:hover:not(.is-on) { color: #fff; }
.phero .lang, .hero .lang { }
@media (max-width: 900px) { .lang { display: none; } .mnav .lang { display: flex; align-self: flex-start; margin-top: 18px; background: rgba(255,255,255,.12); } }

/* ── сертификаты ── */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 46px; }
.cert { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.sec--dark .cert { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.cert__no { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .06em; white-space: nowrap; padding-top: 2px; }
.cert b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.sec--dark .cert b { color: #fff; }
.cert p { color: var(--mut); font-size: 13.5px; line-height: 1.5; }
.sec--dark .cert p { color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .certs { grid-template-columns: 1fr; } }

/* ── статья (aktualności) ── */
.art { max-width: 780px; margin: 0 auto; padding: 64px 24px 80px; }
.art h2 { font-size: 24px; margin: 34px 0 12px; letter-spacing: -.3px; }
.art p, .art li { color: #3E4145; font-size: 16px; line-height: 1.75; margin: 14px 0; }
.art ul { padding-left: 22px; }
.art__meta { color: var(--mut); font-size: 13.5px; margin-bottom: 8px; }
.art img { border-radius: 12px; margin: 26px 0; }
.art table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; }
.art td, .art th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.art th { background: var(--white); font-weight: 700; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 54px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.news-card img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.news-card__in { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { color: var(--mut); font-size: 13px; }
.news-card h3 { font-size: 18.5px; font-weight: 700; line-height: 1.3; }
.news-card p { color: var(--mut); font-size: 14px; flex: 1; }
.news-card span { color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .news-list { grid-template-columns: 1fr; } }


/* ── кредит студии ── */
.foot__credit { width: 100%; text-align: center; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); padding-top: 12px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.foot__credit b { color: var(--accent); font-weight: 400; }
.foot__credit a { color: rgba(255,255,255,.55); font-weight: 600; }
.foot__credit a:hover { color: var(--accent); }

/* ── блок семейства фирм (Grupa BESTKAM) ── */
.family { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.family__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.family__head .pill { margin-bottom: 0; }
.family__head p { color: var(--mut); font-size: 14.5px; }
.family__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fam { border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; background: var(--white); }
.fam__logo { height: 30px; width: auto; max-width: 78%; object-fit: contain; object-position: left center; margin-bottom: 12px; display: block; }
.fam__cat { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.fam p { color: var(--mut); font-size: 13.5px; line-height: 1.55; }
.fam i { font-style: normal; color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 8px; }
a.fam:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
.fam--here { background: var(--bg); border-style: dashed; }
.fam--here .fam__badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 900px) { .family__grid { grid-template-columns: 1fr; } }

/* ── модальная форма контакта ── */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,16,18,.6); backdrop-filter: blur(3px); animation: mfade .2s ease; }
.modal__card { position: relative; z-index: 2; background: var(--white); border-radius: 16px; width: 100%; max-width: 460px; padding: 34px 32px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: mpop .28s cubic-bezier(.2,.8,.2,1); max-height: 92vh; overflow: auto; }
.modal__x { position: absolute; top: 12px; right: 15px; background: none; border: 0; font-size: 27px; line-height: 1; color: var(--mut); cursor: pointer; }
.modal__x:hover { color: var(--ink); }
.modal h3 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.modal__lead { color: var(--mut); font-size: 14.5px; margin: 8px 0 20px; }
.modal form { display: flex; flex-direction: column; gap: 10px; }
.modal input, .modal textarea { font-family: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .15s; }
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--accent); }
.modal textarea { resize: vertical; min-height: 96px; }
.modal__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.modal__err { color: #c0392b; font-size: 13px; min-height: 16px; margin: 2px 0 0; }
.modal .btn { justify-content: center; margin-top: 6px; }
.modal__success { text-align: center; padding: 16px 0 4px; }
.modal__success h3 { margin-top: 10px; }
.modal__success p { color: var(--mut); font-size: 14.5px; margin: 8px 0 22px; }
.modal__check { width: 76px; height: 76px; margin: 0 auto; }
.modal__check svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.modal__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: mdraw .5s ease forwards; }
.modal__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: mdraw .35s .35s ease forwards; }
@keyframes mdraw { to { stroke-dashoffset: 0; } }
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mpop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__card, .modal__backdrop { animation: none; } .modal__check circle, .modal__check path { animation: none; stroke-dashoffset: 0; } }
