:root{
  --bg:#070707;
  --fg:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --soft:rgba(255,255,255,.06);
  --line:rgba(255,255,255,.12);
  --glass:rgba(255,255,255,.08);
  --shadow:0 22px 70px rgba(0,0,0,.55);
  --accent:#0f6b5f; /* изумруд: подходит к ч/б и интерьерным фото */
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--fg);
}
a{ color:inherit; }
.container{ max-width:1200px; margin:0 auto; padding: 0 20px; }

.nav{ display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.pill{
  text-decoration:none; padding:9px 12px; border-radius:999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.86);
  font-size:13px; letter-spacing:.02em; white-space:nowrap;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pill:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.07); }

.cta{
  text-decoration:none; padding:10px 14px; border-radius:999px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  font-size:13px; white-space:nowrap;
}

/* hero */
.hero{ position:relative; min-height:100vh; overflow:hidden; background:#000; }

/* Анимация главной картинки: плавный zoom (эффект Кена Бёрнса) */
@keyframes heroZoom {
  0%   { transform: scale(1.02); }
  50%  { transform: scale(1.07); }
  100% { transform: scale(1.02); }
}
@keyframes heroOverlayIn {
  from { opacity: 0; }
  to   { opacity: 0.35; }
}
.hero__media{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover;
  filter: brightness(1.12) contrast(1.03) saturate(1.02);
  animation: heroZoom 22s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero__media{ animation: none; transform: scale(1.04); }
  .hero__overlay{ animation: none; opacity: 0.35; }
  .hero__intro{ animation: none; opacity: 0; }
  .hero__intro-logo{ animation: none; opacity: 0; }
  .topbar{ animation: none; opacity: 1; }
  .topbar .brand--arthome{ animation: none; opacity: 1; }
  .hero__content.hero__content--clean{ animation: none; opacity: 1; }
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(62% 62% at 60% 40%, rgba(0,0,0,.08), rgba(0,0,0,.78)),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.30) 45%, rgba(0,0,0,.86));
  animation: heroOverlayIn 1.2s ease-out forwards;
}

/* Вступление: логотип ARThome по центру экрана, затем исчезает */
.hero__intro{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  animation: heroIntroFade 2.6s ease-out forwards;
}
.hero__intro:active{
  cursor: grabbing;
}

/* Свайп: мгновенно приводим к финальному состоянию (без ожидания анимации) */
body.arthome-intro-skip .hero__intro,
body.arthome-intro-skip .hero__intro-logo{
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
body.arthome-intro-skip .hero__overlay{
  animation: none !important;
  opacity: 0.35 !important;
}
body.arthome-intro-skip .topbar,
body.arthome-intro-skip .topbar .brand--arthome{
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
body.arthome-intro-skip .hero__content.hero__content--clean{
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
@keyframes heroIntroFade {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  65%  { opacity: 1; }
  100% { opacity: 0; }
}
/* Логотип ARThome по центру в анимации */
.hero__intro-logo{
  height: 240px; /* в 1.5 раза меньше 360px */
  width: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.5)) brightness(0) invert(1);
  animation: heroIntroLogo 2.6s ease-out forwards;
}
@keyframes heroIntroLogo {
  0%   { opacity: 0; transform: scale(0.94); }
  12%  { opacity: 1; transform: scale(1); }
  65%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

/* Шапка скрыта в начале, появляется после вступления с логотипом */
.topbar{
  opacity: 0;
  animation: heroTopbarIn 0.65s ease-out 1.55s forwards;
}
.topbar .brand--arthome{
  opacity: 0;
  animation: heroTopbarLogoIn 0.5s ease-out 1.55s forwards;
}
@keyframes heroTopbarIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroTopbarLogoIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.topbar .brand--arthome .arthome-logo-img{
  transform: none;
}

/* Контент героя (заголовок, слоган, кнопка) появляется следом */
.hero__content.hero__content--clean{
  opacity: 0;
  animation: heroContentIn 0.85s ease-out 1.95s forwards;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__content{ position:relative; max-width:1200px; margin:0 auto; padding:120px 20px 56px; min-height:100vh; display:flex; align-items:flex-end; }
.scroll{
  position:absolute; left:50%; bottom:18px; transform: translateX(-50%);
  width:40px; height:40px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.16);
  text-decoration:none;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}

/* liquid glass */
.glass{
  border-radius: 26px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}
.glass--hero{ width:min(860px, 100%); padding: 28px 28px 22px; }
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 12px; letter-spacing:.18em; text-transform: uppercase;
  color: rgba(255,255,255,.78); margin-bottom: 10px;
}
.dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15,107,95,.18);
}
h1{ margin:0 0 10px; font-size: 54px; line-height: 1.02; letter-spacing: .01em; }
.sub{ margin:0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 62ch; }
.mini{ display:flex; flex-wrap:wrap; gap:10px; margin: 0 0 18px; }
.chip{
  padding: 8px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  font-size: 13px;
  color: rgba(255,255,255,.86);
}
.actions{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }

.btn{
  cursor:pointer; border:0; padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color:#0b0b0b; font-weight: 650;
  text-decoration:none; display:inline-flex; align-items:center; justify-content:center;
}
.btn--ghost{
  background: transparent;
  color: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.22);
}
.btn--dark{
  background: rgba(255,255,255,.92);
  color:#0b0b0b;
}
.btn:hover{ filter: brightness(0.98); }

/* blocks */
.blk{ padding: 78px 0; }
.blk--soft{ background: rgba(255,255,255,.03); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.head{ margin-bottom: 26px; }
.head--center{ text-align:center; }
.head h2{ margin:0 0 10px; font-size: 38px; letter-spacing:.01em; }
.lead{ margin:0; color: rgba(255,255,255,.72); line-height: 1.6; }

/* about */
.about{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items:start; }
.about__grid{ margin-top: 16px; display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a-m{ border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); border-radius: 18px; padding: 14px; }

/* about — сжать по вертикали */
#about.blk{ padding: 44px 0; }
#about .about__grid{ margin-top: 10px; gap: 10px; }
#about .a-m{ padding: 10px 12px; border-radius: 14px; }
#about .lead{ margin-top: 0; }
#about h2{ margin-bottom: 0; font-size: 32px; }
#about .about__heading{
  margin: 0 0 -4px;
  line-height: 1;
  overflow: hidden; /* можно «подрезать» края лого */
}
#about .about__logo-img{
  height: 120px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-left: -8px; /* плотнее влево, визуальное выравнивание с текстом */
}
.a-n{ font-weight: 800; letter-spacing: .02em; }
.a-t{ margin-top: 6px; color: rgba(255,255,255,.70); font-size: 13px; }
.glass--panel{ padding: 18px; border-radius: 22px; }
.panel-h{ font-weight: 800; letter-spacing:.02em; margin-bottom: 10px; }
.panel-ol{ margin:0; padding-left: 18px; color: rgba(255,255,255,.76); line-height: 1.6; }

/* directions */
.d-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.d-card{ border:1px solid rgba(255,255,255,.10); background: #0f1012; border-radius: 18px; padding: 16px; display:block; text-decoration:none; color:inherit; }
.d-h{ font-weight: 850; letter-spacing:.02em; }
.d-t{ margin-top: 8px; color: rgba(255,255,255,.72); font-size: 14px; line-height:1.5; }
.d-btn{ margin-top: 14px; display:inline-block; text-decoration:none; color: rgba(255,255,255,.88); border-bottom: 1px solid rgba(255,255,255,.28); padding-bottom:2px; }
.d-card:hover{ border-color: rgba(15,107,95,.36); }

/* services */
.s-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.s-card{
  text-decoration:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.s-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  filter: blur(12px);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}
.s-card:hover::before{
  opacity: 0.75;
}
.s-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}
.s-card:hover::after{
  opacity: 0.55;
}
.s-card > *{
  position: relative;
  z-index: 1;
}

/* services: индивидуальные картинки при наведении */
#services .s-card--kvartiry::before{
  background-image: url("квартиры/квартира в ЖК Старый центр 37кв/1.jpg");
}
#services .s-card--doma::before{
  background-image: url("дома/дом в пос Сафроновский 450кв/001.jpg");
}
#services .s-card--commercial::before{
  background-image: url("коммерческие/CHOC cafe/001.jpg");
}
#services .s-card--architecture::before{
  background-image: url("дома/дом в районе Мелькомбинат 1500кв/003.jpg");
}
.s-ic{
  width:44px; height:44px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
}
.s-ic svg{ width:24px; height:24px; }
.s-h{ font-weight: 850; letter-spacing:.02em; }
.s-t{ color: rgba(255,255,255,.72); font-size: 14px; line-height:1.5; }
.s-more{ margin-top:auto; color: rgba(255,255,255,.86); opacity:.9; }
#services .s-more{ display: none; }
.s-card:hover{ border-color: rgba(255,255,255,.18); }

/* dynamic service examples (lists under services) */
.service-examples{ margin-top: -20px; }
.service-examples__title{ margin-bottom: 6px; }
.sx-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom: 16px;
}
.sx-item{
  cursor:pointer;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sx-item:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.sx-item--active{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.32);
}
.sx-photos{
  margin-top: 0;
}
.sx-photos-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  grid-template-rows: auto;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#serviceExamplesPhotos .sx-photos-grid,
.service-examples .sx-photos-grid{
  gap: 8px;
}
#serviceExamplesPhotos .sx-photos-grid--choc{
  align-items: start;
}
.sx-photo{
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
  background: transparent;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  width: 100%;
  min-height: 0;
}
/* Плашки по ориентации: вертикальные 9:16, квадратные 1:1, остальные 16:9. Растяжение без уреза. */
#serviceExamplesPhotos .sx-photo{
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.06);
}
#serviceExamplesPhotos .sx-photo.sx-photo--portrait{
  aspect-ratio: 9/16;
}
#serviceExamplesPhotos .sx-photo.sx-photo--square{
  aspect-ratio: 1/1;
}
/* CHOC cafe: отдельная ветка рендера. Плашки по data-aspect, картинки заполняют плашку. */
#serviceExamplesPhotos .sx-photo[data-aspect="16/9"]{
  aspect-ratio: 16/9 !important;
  width: 100%;
}
#serviceExamplesPhotos .sx-photo[data-aspect="16/9"] img{
  object-fit: cover;
  object-position: center;
}
#serviceExamplesPhotos .sx-photo[data-aspect="9/16"]{
  width: 100%;
  aspect-ratio: 9/16;
}
#serviceExamplesPhotos .sx-photo[data-aspect="9/16"] img{
  object-fit: contain;
  object-position: center;
}
.sx-photo{ aspect-ratio: 16/9; }
.sx-photo img,
#serviceExamplesPhotos .sx-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
  background: rgba(255,255,255,.06);
}
.sx-photo figcaption{
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}

@media (max-width: 880px){
  .sx-photos-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 720px){
  .sx-photos-grid{
    grid-template-columns: 1fr;
  }
}

/* benefits */
.b-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.b-card{
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.b-top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.b-k{ font-weight: 900; letter-spacing:.04em; text-transform: uppercase; font-size: 12px; color: rgba(255,255,255,.82); }
.b-ic{
  width:44px; height:44px; border-radius: 14px;
  flex-shrink: 0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
}
.b-ic svg{ width:24px; height:24px; }
.b-t{ margin-top: 10px; color: rgba(255,255,255,.74); line-height: 1.55; }

/* benefits: крупнее заголовки, текст на одних местах (без скачка от края до края) */
#benefits .head h2{ font-size: 44px; }
#benefits .lead{ font-size: 17px; }
#benefits .b-card{
  display: flex;
  flex-direction: column;
  gap: 0;
}
#benefits .b-top{
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
#benefits .b-k{ font-size: 15px; flex: 1; min-width: 0; padding-right: 0; line-height: 1.3; }
#benefits .b-t{ margin-top: 0; padding-right: 64px; text-align: left; line-height: 1.55; }
#benefits .b-ic{
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#benefits .b-ic svg{
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
}

/* portfolio 4x4 */
.filters{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin: 18px 0 22px; }
.filter{
  cursor:pointer; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.filter::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 100%), url(artstolyar_hero_2000.jpg) center/cover;
  filter: blur(14px);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.filter:hover::before{
  opacity: 0.92;
}
.filter > span{
  position: relative;
  z-index: 1;
}
.filter:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.filter:not(:hover){
  background: rgba(255,255,255,.04);
}
.filter.is-active{ border-color: rgba(255,255,255,.35); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }

.p-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.p-card{ position:relative; border-radius: 16px; overflow:hidden; background:#111; text-decoration:none; display:block; }
/* Размытый фон по цветам картинки (без чёрных полос) */
.p-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.08);
  z-index: 0;
  pointer-events: none;
}
/* Нечётные ряды (1–4, 9–12, …) — 16:9; чётные ряды (5–8, 13–16, …) — квадрат */
.p-card:nth-child(8n+1),
.p-card:nth-child(8n+2),
.p-card:nth-child(8n+3),
.p-card:nth-child(8n+4){ aspect-ratio: 16/9; }
.p-card:nth-child(8n+5),
.p-card:nth-child(8n+6),
.p-card:nth-child(8n+7),
.p-card:nth-child(8n+8){ aspect-ratio: 1/1; }
.p-card img{ position: relative; z-index: 1; width:100%; height:100%; object-fit: cover; display:block; filter: brightness(1.10) contrast(1.02) saturate(1.02); }
.p-hover{ position:absolute; inset:0; z-index: 2; display:flex; align-items:flex-end; padding: 14px; opacity:0; transition: opacity .18s ease, background .18s ease; background: rgba(0,0,0,0); }
.p-card:hover .p-hover{ opacity:1; background: rgba(0,0,0,.75); } /* 75% матовая */
.glass--p{
  width:100%;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.p-title{ font-size: 15px; font-weight: 900; line-height: 1.15; }
.p-meta{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.78); }
.center{ display:flex; justify-content:center; margin-top: 22px; }

/* Кнопка «Открыть полное портфолио» — жидкое стекло при наведении */
.btn--glass{
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease, backdrop-filter .25s ease;
}
.btn--glass::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 100%), url(artstolyar_hero_2000.jpg) center/cover;
  filter: blur(14px);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.btn--glass:hover::before{
  opacity: 0.92;
}
.btn--glass > span{
  position: relative;
  z-index: 1;
}
.btn--glass:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* steps */
.steps{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.step{ border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); border-radius: 18px; padding: 16px; }
.step-n{
  color: rgba(255,255,255,.95);
  font-weight: 950;
  letter-spacing:.06em;
  font-size: 18px;
  text-transform: uppercase;
}
.step-h{ margin-top: 8px; font-weight: 900; }
.step-t{ margin-top: 8px; color: rgba(255,255,255,.72); line-height: 1.55; font-size: 14px; }

/* tariffs */
.t-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.t-card{ border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); border-radius: 18px; padding: 16px; display:flex; flex-direction:column; gap: 10px; }
.t-h{ font-weight: 950; letter-spacing:.02em; }
.t-p{ color: rgba(255,255,255,.95); font-weight: 950; font-size: 18px; }
.t-d{ color: rgba(255,255,255,.72); line-height:1.55; font-size: 14px; }
.t-ul{ margin:0; padding-left: 18px; color: rgba(255,255,255,.78); line-height:1.6; font-size: 14px; }
.t-ul--nested{ margin-top: 6px; margin-bottom: 0; padding-left: 20px; font-size: 13px; }
.t-spoiler{ margin: 0; padding: 0; list-style: none; }

@keyframes tPulse {
  0% { transform: translateY(0); filter: brightness(1); }
  45% { transform: translateY(-1px); filter: brightness(1.16); }
  100% { transform: translateY(0); filter: brightness(1); }
}
.t-spoiler:not([open]) > summary{
  animation: tPulse 1.65s ease-in-out infinite;
  will-change: transform, filter;
}
.t-spoiler > summary:hover{
  animation: none;
}
.t-spoiler summary{
  list-style: none;
  cursor: pointer;
  padding: 2px 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, text-decoration-thickness .18s ease;
}
.t-textbtn{
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.t-textbtn--link{
  display: inline;
  color: inherit;
}
.t-textbtn--link:hover{
  color: rgba(255,255,255,.95);
  text-decoration-thickness: 2px;
}
.t-spoiler summary::-webkit-details-marker{ display: none; }
.t-spoiler summary:hover{
  color: rgba(255,255,255,.92);
}
.t-spoiler__label{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.t-spoiler summary::before{
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid rgba(255,255,255,.5);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: -4px;
  transition: transform .2s ease;
}
.t-spoiler[open] summary::before{ transform: rotate(90deg); }
.t-spoiler[open] summary{
  color: rgba(255,255,255,.92);
}

.t-preview{
  margin-top: 10px;
}
.t-preview__link{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  max-width: 100%;
}
.t-preview__img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  max-width: 100%;
}
.t-preview__link:hover{
  border-color: rgba(255,255,255,.22);
}

@media (max-width: 720px){
  .t-spoiler summary{
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.90);
  }
  .t-spoiler summary::before{
    margin-left: 0;
    margin-right: 8px;
  }
  .t-preview__img{
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce){
  .t-spoiler > summary{ animation: none !important; }
}
.t-card .btn{ margin-top: auto; }

/* contacts */
.c-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-line{ margin: 10px 0; color: rgba(255,255,255,.78); }
.c-k{ color: rgba(255,255,255,.60); margin-right: 6px; }
.mini-form{ display:flex; flex-direction:column; gap: 10px; margin-top: 10px; }
input, textarea{
  width:100%; padding: 12px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  outline:none;
}
.fine{ margin-top: 10px; color: rgba(255,255,255,.60); font-size: 12px; line-height: 1.5; }

/* footer */
.footer{ padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer__in{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 14px; color: rgba(255,255,255,.68); }
.footer__directions{ display:flex; flex-wrap:wrap; align-items:center; gap: 8px 14px; font-size: 13px; }
.footer__directions-label{ color: rgba(255,255,255,.5); margin-right: 4px; }
.footer__directions a{ text-decoration:none; color: rgba(255,255,255,.78); border-bottom: 1px solid transparent; }
.footer__directions a:hover{ border-bottom-color: var(--accent); color: #fff; }
.footer__decor{ font-weight: 600; color: var(--accent) !important; }
.footer__current{ color: rgba(255,255,255,.5); }
.footer__dir--disabled{ pointer-events: none; cursor: default; opacity: .55; }
.footer__dir--disabled:hover{ border-bottom-color: transparent !important; color: rgba(255,255,255,.78) !important; }
.to-top{
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom:2px;
  color: rgba(255,255,255,.8);
}
.to-top__arrow{
  color:#fff;
  font-weight: 700;
  font-size: 1.15em;
}

/* modal */
.modal{ position:fixed; inset:0; display:none; z-index:100; padding: 22px; background: rgba(0,0,0,.66); }
.modal.is-open{ display:flex; align-items:center; justify-content:center; }
.modal__panel{
  width:min(720px, 100%); border-radius: 22px;
  background: rgba(12,12,12,.82);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  padding: 18px; color: var(--fg);
}
.modal__top{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 10px; }
.modal__title{ margin:0; font-size: 16px; letter-spacing:.02em; }
.x{
  cursor:pointer; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  border-radius: 12px; padding: 8px 10px;
}
.checks{ display:flex; flex-wrap:wrap; gap:10px; padding: 10px 0 4px; }
.check{
  display:flex; gap:8px; align-items:center;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size: 13px;
  color: rgba(255,255,255,.86);
}
.grid-form{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.field{ display:flex; flex-direction:column; gap: 6px; }
.field--full{ grid-column: 1/-1; }
label{ font-size: 12px; color: rgba(255,255,255,.72); }
.modal__bottom{ display:flex; gap:10px; justify-content:flex-end; align-items:center; margin-top: 12px; }

/* Лайтбокс портфолио */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.88);
}
.lightbox[hidden]{ display: none !important; }
.lightbox__backdrop{
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.lightbox__content{
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__img{
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__caption{
  color: rgba(255,255,255,.9);
  font-size: 14px;
  text-align: center;
  max-width: 520px;
  line-height: 1.35;
}
.lightbox__close{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.lightbox__close:hover{
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}
.lightbox__prev,
.lightbox__next{
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.lightbox__prev{ left: 16px; }
.lightbox__next{ right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover{
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}
.lightbox__counter{
  color: rgba(255,255,255,.7);
  font-size: 13px;
}

/* responsive */
@media (max-width: 1100px){
  .p-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .d-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .s-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px){
  h1{ font-size: 38px; }
  .about{ grid-template-columns: 1fr; }
  .t-grid{ grid-template-columns: 1fr; }
  .c-grid{ grid-template-columns: 1fr; }
  .grid-form{ grid-template-columns: 1fr; }
}



/* === Typography closer to logo (tall, spaced, premium) === */
.hero-title{
  letter-spacing: .14em;
  font-weight: 700;
}
.kicker{
  letter-spacing:.22em;
}

/* === Zrobim-like left rail + minimal topbar === */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:60;
  padding: 16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  pointer-events:none; /* only children clickable */
}
.topbar .brand, .topbar__cta{ pointer-events:auto; }

.topbar .brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 10px 12px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.topbar__cta-wrap{ position: relative; }

.topbar__cta{
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  color: rgba(255,255,255,.92);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  font-size: 13px;
}
.topbar__cta--menu{
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__dropdown{
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 200px;
  padding: 8px 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  z-index: 100;
}
.topbar__dropdown[hidden]{ display: none !important; }

.topbar__dropdown-item{
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.topbar__dropdown-item:hover{
  background: rgba(255,255,255,.1);
  color: #fff;
}
.topbar__cta:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}

.rail{
  position:fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index:70;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width: 54px;
  height: 140px;
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: rgba(255,255,255,.88);
  cursor:pointer;
}
/* Иконка меню: три полоски вертикально разного размера (|||) */
.rail__bars{
  width: 3px;
  height: 18px;
  background: rgba(255,255,255,.9);
  position:relative;
  border-radius: 4px;
}
.rail__bars::before{
  content:"";
  position:absolute;
  top:0; left: -8px;
  width: 3px;
  height: 26px;
  background: rgba(255,255,255,.9);
  border-radius: 4px;
}
.rail__bars::after{
  content:"";
  position:absolute;
  top:0; left: 6px;
  width: 3px;
  height: 12px;
  background: rgba(255,255,255,.9);
  border-radius: 4px;
}

.rail__text{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 14px;
  letter-spacing: .28em;
  font-weight: 800;
  text-transform: uppercase;
  opacity:.92;
}

/* Drawer */
.drawer{
  position:fixed; inset:0;
  z-index:90;
  display:none;
}
.drawer.is-open{ display:block; }
.drawer__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.62);
}
.drawer__panel{
  position:absolute;
  left:0; top:84px; bottom:0; /* вплотную к шапке (лого обрезан до 78px + padding 6px) */
  width: min(420px, 88vw);
  padding: 18px;
  padding-top: 52px; /* место под крестик в углу */
  background: rgba(10,10,10,.86);
  border-right: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.drawer__head{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  margin: 0; padding: 0;
  border: none;
  overflow: visible;
}
.drawer__title{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.80);
}
/* Крестик закрытия в правом верхнем углу панели */
.drawer__x{
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}
.drawer__x:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); /* как у плашек: появляется только при наведении */
}
.drawer__nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding: 8px 0;
  margin-top: 5px; /* отступ от крестика до первой плашки = 10px (как между плашками) */
}
.drawer__nav a{
  text-decoration:none;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.88);
  letter-spacing:.02em;
  transition: border-color .18s ease, background .18s ease;
}
.drawer__nav a:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); /* как плашки в хедере: появляется только при наведении */
}
.drawer__foot{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.drawer__link{
  color: rgba(255,255,255,.76);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.22);
  width: fit-content;
  padding-bottom: 2px;
}

/* Give room for rail on desktop */
@media (min-width: 900px){
  .hero__content{ padding-left: 88px; padding-right: 20px; }
  .container{ padding-left: 88px; }
}

/* Hide rail on small screens and use topbar only */
@media (max-width: 720px){
  .rail{ display:none; }
  .hero__content{ padding-left: 20px; }
  .container{ padding-left: 20px; }
}


/* === Top bar like FOX: logo left, pills right === */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:80;
  padding: 16px 20px;
  pointer-events:none;
}
.topbar__inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.topbar__inner > *{ pointer-events:auto; }

/* logo like feedback: clean, no card */
.topbar .brand{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.topbar 

.topnav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* pill text lower like FOX */
.pill{
  text-transform: lowercase;
  letter-spacing: .02em;
}

/* Keep rail visible and centered left */
.rail{
  z-index:70;
}

/* On smaller screens, hide pills, keep CTA */
@media (max-width: 880px){
  .topnav{ display:none; }
}



/* ===== Menu rail: жидкое стекло при наведении (как у плашек) ===== */
.rail{
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease, backdrop-filter .18s ease;
}
.rail:hover{
  transform: translateY(-50%) translateX(2px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.rail:hover .rail__bars,
.rail:hover .rail__bars::before,
.rail:hover .rail__bars::after{
  background: rgba(255,255,255,.96);
}
.rail__bars, .rail__bars::before, .rail__bars::after{
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

/* subtle accent pulse dot */
.rail::after{
  content:"";
  position:absolute;
  top:12px; right:12px;
  width:8px; height:8px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15,107,95,.12);
  opacity:.55;
  transition: opacity .18s ease, transform .18s ease;
}
.rail:hover::after{ opacity:.9; transform: scale(1.05); }

/* dim when drawer opened */
.rail.is-dim{
  opacity:.35;
  filter: blur(.2px) saturate(.9);
  pointer-events:none;
}

/* ===== Links to feedback ===== */
.fine a, .t-link{
  color: rgba(255,255,255,.78);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 2px;
}
.fine a:hover, .t-link:hover{ color: rgba(255,255,255,.92); border-bottom-color: rgba(15,107,95,.45); }
.fine--hero{ margin-top: 10px; }
.fine--center{ margin-top: 10px; }

/* ===== Mobile: нормальная версия ===== */
@media (max-width: 720px){
  .topbar{ padding: 12px 14px; }
  .topbar__inner{
    gap:10px;
  }
  .topbar 
  .topbar__cta{
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero__content{
    padding: 92px 16px 44px;
    align-items:flex-end;
  }
  .glass--hero{ padding: 18px 18px 16px; border-radius: 22px; }
  h1, .hero-title{ font-size: 30px !important; letter-spacing: .12em; }
  .sub{ font-size: 14px; }
  .chip{ font-size: 12px; padding: 7px 9px; }
  .actions{ gap:10px; }
  .btn{ width: 100%; }
  .btn--ghost{ width: 100%; justify-content:center; }

  .blk{ padding: 56px 0; }
  .head h2{ font-size: 28px; }
  .about__grid{ grid-template-columns: 1fr; }

  .d-grid{ grid-template-columns: 1fr; }
  .s-grid{ grid-template-columns: 1fr; }
  .b-grid{ grid-template-columns: 1fr; }
  .p-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .t-grid{ grid-template-columns: 1fr; }
  .filters{ justify-content:flex-start; overflow:auto; padding-bottom: 6px; }
  .filter{ white-space: nowrap; }

  .footer__in{ flex-direction:column; align-items:flex-start; }
}

/* Tablet tweaks */
}

/* logo image crisp */
.topbar 



/* white glass */
  border: 1px solid rgba(255,255,255,.22) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.55) !important;
}


@media (max-width: 720px){
  
  
  
}



/* ===== FIX: logo inside glass circle ===== */






/* mobile */
@media (max-width: 720px){
  
  
}










/* ===== LOGO: ORIGINAL WHITE VERSION IN GLASS CAPSULE ===== */
.brand--glass{
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.logo-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}

.logo-pill img{
  height: 30px;
  width: auto;
  display:block;
  /* NO filters — pure original white */
}

@media (max-width:720px){
  .logo-pill{ padding: 8px 14px; }
  .logo-pill img{ height: 26px; }
}



/* ===== Mobile fixes (layout + menu) ===== */

/* Hamburger in topbar (mobile) */
.topbar__menu{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.26);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  cursor:pointer;
}
.hamb{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 4px;
  position: relative;
  margin: 0 auto;
}
.hamb::before, .hamb::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius:4px;
}
.hamb::before{ top:-6px; }
.hamb::after{ top:6px; }

/* Better tap targets on mobile */
@media (max-width: 880px){
  .topbar__menu{ display:inline-flex; align-items:center; justify-content:center; margin-left: auto; }
  .topbar__cta-wrap,
  .topbar__cta{ display:none; } /* move CTA inside drawer on mobile to keep topbar clean */
}

/* Mobile-specific spacing + prevent overlaps with fixed topbar */
@media (max-width: 720px){
  body{ -webkit-text-size-adjust: 100%; }
  .topbar{ padding: 10px 12px; }
  .topbar__inner{ gap: 10px; align-items:center; }
  .logo-pill{ padding: 8px 12px; }
  .hero__content{ padding-top: 86px; }

  /* Make hero card not stick to bottom too much */
  .hero__content{ align-items:flex-end; }
  .glass--hero{ width: 100%; }

  /* Buttons full width already; add safe gap */
  .actions{ flex-direction:column; align-items:stretch; }
  .actions .btn{ width:100%; }

  /* Portfolio cards: 2 columns on mobile for better feel */
  .p-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .p-card{ min-height: 0; }
  .p-title{ font-size: 13px; }
  .p-meta{ font-size: 11px; }

  /* Drawer: take most of the screen */
  .drawer__panel{
    width: 88vw;
    max-width: 420px;
  }

  /* Modal: tighter */
  .modal{ padding: 14px; }
  .modal__panel{ padding: 14px; border-radius: 18px; }
}

/* Extra small phones */
@media (max-width: 380px){
  .p-grid{ grid-template-columns: 1fr; }
}

/* Smooth drawer animation */
.drawer__panel{
  transform: translateX(-12px);
  transition: transform .18s ease;
}
.drawer.is-open .drawer__panel{
  transform: translateX(0);
}
.drawer__overlay{
  opacity: 0;
  transition: opacity .18s ease;
}
.drawer.is-open .drawer__overlay{
  opacity: 1;
}



/* ===== Mobile topbar stability fix ===== */
.topbar{
  pointer-events: auto !important; /* prevent weird tap/scroll behavior */
}

.topbar__inner{
  flex-wrap: nowrap !important;
  width: 100%;
}

/* On tablets/phones: убираем лишний отступ контейнера (было без @media — ломало каскад) */
@media (max-width: 1024px){
  .container{ padding-left: 20px !important; }
  .hero__content{ padding-left: 20px !important; }
}

/* Compact, stable header layout on mobile */
@media (max-width: 720px){
  .topbar{
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }
  .topbar__inner{
    max-width: 100%;
    margin: 0;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  /* Put logo + glass pill in one line without wrapping */
  .brand{ display:flex; align-items:center; min-width: 0; }
  .logo-pill{ max-width: 72vw; }
  .logo-pill img{ max-width: 100%; height: 26px; }

  /* Ensure hamburger never pushes layout */
  .topbar__menu{
    flex: 0 0 auto;
  }
}

/* Hide topnav earlier to avoid wrapping/jumping */
@media (max-width: 1024px){
  .topnav{ display:none !important; }
}



/* =========================
   CAPITAL FIXES (1–4)
   ========================= */

/* Global typography: thinner, straight, laconic (Tilda-like) */
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
}
h1,h2,h3{ font-weight: 500; }

/* 1) Logo: no pill, glass effect on letters */
.brand--text{
  text-decoration:none;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.logo-text{
  display:inline-block;
  font-size: 20px;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 10px 26px rgba(0,0,0,.55),
    0 0 1px rgba(255,255,255,.35);
}

/* align topbar a bit left */
.topbar{ padding-left: 14px !important; padding-right: 14px !important; }

/* 2) Hero: readability via gradient only; remove panels */
.hero__content--clean{
  padding: 120px 20px 112px; /* блок в 2 раза выше (было 56px) */
  align-items: flex-end;
}
.hero__copy{ width: min(720px, 100%); margin-left: 48px; }
.hero-title{
  margin:0 0 10px;
  font-size: 44px;
  letter-spacing: .12em;
  font-weight: 500;
}
.hero-slogan{
  margin:0 0 18px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.55;
}
.btn--primary{
  background: rgba(255,255,255,.92);
  color:#0b0b0b;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
}

/* 4) remove green dot everywhere */
.dot{ display:none !important; }
.rail::after{ display:none !important; }

/* 3) Portfolio overlays only on hover/tap; bigger font */
.p-hover{ opacity:0; pointer-events:none; }
.p-card:hover .p-hover,
.p-card.is-active .p-hover{ opacity:1; pointer-events:auto; }
.p-title{ font-size: 16px; font-weight: 600; }
.p-meta{ font-size: 13px; }

/* Hide scroll arrow (visual noise) */
.scroll{ display:none !important; }

/* Desktop rail visible */
@media (min-width: 981px){
  .rail{ display:flex !important; }
  .container{ padding-left: 88px; }
  .hero__content{ padding-left: 88px; }
}

/* Mobile hero */
@media (max-width: 720px){
  .hero__content--clean{ padding: 92px 16px 88px; }
  .hero__copy{ margin-left: 24px; }
  .hero-title{ font-size: 30px; letter-spacing: .10em; }
  .hero-slogan{ font-size: 14px; }
}



/* ===== ABOUT SLIDE FIX ===== */
.blk--about{
  padding: 56px 0; /* сжали по вертикали */
}
.about--compact{
  display:grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.about__logo{
  display:inline-block;
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about__text{
  max-width: 520px;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}
.about__facts{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.fact{
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.fact b{
  display:block;
  font-size: 18px;
}
.fact span{
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

@media (max-width:720px){
  .blk--about{ padding: 44px 0; }
  .about__facts{ grid-template-columns: 1fr; }
}



/* ===== DIRECTIONS FIX ===== */

/* 1. Заголовок «Направления» и подзаголовок — поднять выше (меньше отступ сверху) */
#directions{
  padding-top: 48px !important;
}
#directions .head{
  margin-bottom: 32px;
}
#directions .head h2{
  margin-bottom: 14px;
}
#directions .lead{
  margin-top: 0;
}

/* 2. Убрать текст «Перейти →» */
#directions .d-btn{
  font-size: 0;
  color: transparent;
  border: none;
  padding: 0;
  margin-top: 12px;
  display: block;
  height: 0;
  overflow: hidden;
}

/* 3. Жидкое стекло при наведении — размытая картинка */
.d-card{
  position: relative;
  overflow: hidden;
}
.d-card::after{
  content:"";
  position:absolute;
  inset:0;
  /* Тёмный фон для полного перекрытия карточки при наведении */
  background: rgba(0,0,0,.88);
  opacity:0;
  filter: none;
  transition: opacity .4s ease;
  z-index: 2; /* фон поверх текста */
}
.d-card::before{
  content:"";
  position:absolute;
  inset:0;
  /* Логотип поверх чёрного фона; буквы инвертированы в белые */
  --dirLogoSize: 62%;
  background-image: url('arthome_logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: var(--dirLogoSize) auto;
  filter: invert(1) brightness(1.4);
  opacity:0;
  transition: opacity .4s ease;
  z-index: 3; /* логотип выше всего */
}
.d-card:hover::after,
.d-card:hover::before{
  opacity:1;
}

/* Стеклянная подсветка при наведении */
.d-card:hover{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 30px 80px rgba(0,0,0,.6);
  border-color: rgba(255,255,255,.28);
}

/* Текст карточки выше слоёв стекла */
.d-card > *{
  position: relative;
  z-index: 1; /* текст под фоном и логотипом при ховере */
}

/* Логотипы направлений (берём из соответствующих проектов) */
.d-card--artstroy::before{
  background-image:url('dir-logos/artstroy-white.png');
  filter: none;
  --dirLogoSize: 56%;
}
.d-card--artstolyar::before{
  background-image:url('dir-logos/artstolyar-white.png');
  filter: none;
}
.d-card--artremont::before{
  background-image:url('dir-logos/artremont-white.png');
  filter: none;
  --dirLogoSize: 56%;
}
.d-card--artgreen::before{
  background-image:url('dir-logos/artgreen-white.png');
  filter: none;
  --dirLogoSize: 58%;
}



/* ===== PORTFOLIO: жидкое стекло при наведении на картинку ===== */
.p-card{
  position: relative;
  overflow:hidden;
}
/* При наведении на карточку — лёгкий оверлей без размытия картинки */
.p-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.08);
  opacity:0;
  transition: opacity .35s ease;
  z-index:1;
  pointer-events:none;
}
.p-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.45) 100%);
  opacity:0;
  transition: opacity .35s ease;
  z-index:1;
  pointer-events:none;
}
.p-card:hover::after,
.p-card:hover::before,
.p-card.is-active::after,
.p-card.is-active::before{
  opacity:1;
}

.p-card > *{
  position: relative;
  z-index: 2;
}

.p-hover{
  transition: opacity .3s ease;
}



/* ===== PROCESS: readability (timeline) + remove scattered scanning ===== */
.steps--timeline{
  list-style: none;
  margin: 26px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}

.steps--timeline .step{
  counter-increment: step;
}

.steps--timeline .s-card{
  position: relative;
  padding-left: 78px; /* room for number */
  border-radius: 18px;
}

.steps--timeline .s-card::before{
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.steps--timeline .s-card::after{
  content:"";
  position:absolute;
  left: 39px;
  top: 70px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
}

.steps--timeline .step:last-child .s-card::after{
  display:none;
}

.steps--timeline .s-card h3{
  margin-top: 0;
}

#process .center{
  margin-top: 44px; /* кнопка опущена чуть ниже, чтобы зазор сверху/снизу визуально уравновесился */
}

/* On desktop we keep single column for clarity */
@media (min-width: 981px){
  #process .container{ max-width: 980px; }
}



/* ===== TARIFFS: bring to one system ===== */
#tariffs .t-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}

#tariffs .t-card{
  display:flex;
  flex-direction:column;
  height: 100%;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

#tariffs .t-card h3{
  margin: 0 0 6px;
  font-weight: 500;
}

#tariffs .price{
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

#tariffs .t-card ul{
  margin: 0;
  padding-left: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
}

#tariffs .t-cta{
  margin-top: 28px;
  padding-top: 0;
}

#tariffs .t-cta .btn{
  border-radius: 16px;
  padding: 12px 28px;
  font-weight: 600;
}

/* unified hover */
#tariffs .t-card:hover{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 26px 90px rgba(0,0,0,.50);
}

/* Responsive */
@media (max-width: 980px){
  #tariffs .t-grid{ grid-template-columns: 1fr; }
}



/* ===== CONTACTS: кнопка на форму + реквизиты ===== */
#contacts .contacts__body{
  max-width: 760px;
  margin: 0 auto;
}
#contacts .contacts__cta{
  text-align: center;
  margin-bottom: 40px;
}
#contacts .contacts__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
#contacts .contacts__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(0,0,0,.5);
}
#contacts .contacts__req{
  position: relative;
  padding: 28px 88px 28px 24px; /* справа место под вертикальные иконки */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
}
#contacts .contacts__req p{
  margin: 0 0 10px;
}
#contacts .contacts__req p:last-child{
  margin-bottom: 0;
}
#contacts .contacts__salon{
  font-weight: 600;
  color: rgba(255,255,255,.92);
}
#contacts .contacts__region{
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 20px);
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: rgba(255,255,255,.98);
  margin: 0 0 12px !important;
}
#contacts .contacts__phones{
  margin: 0 0 8px;
}
#contacts .contacts__name{
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,.92);
  margin-bottom: 14px !important;
}
#contacts .contacts__req a{
  color: rgba(255,255,255,.88);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#contacts .contacts__req a:hover{
  color: #fff;
}
#contacts .contacts__socials{
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center; /* и текст, и иконки по середине одной вертикали */
  gap: 8px;
}
#contacts .contacts__socials-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
#contacts .contacts__social{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
#contacts .contacts__social-ic svg{
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
#contacts .contacts__social-ic svg[stroke]{
  fill: none;
  stroke: currentColor;
}
#contacts .contacts__social:hover{
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
#contacts .contacts__privacy{
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.6) !important;
}
#contacts .contacts__privacy a{
  color: rgba(255,255,255,.72);
}

/* Контакты: на мобильных иконки соцсетей не поверх текста */
@media (max-width: 768px){
  #contacts .contacts__req{
    padding-right: 24px;
  }
  #contacts .contacts__socials{
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }
  #contacts .contacts__socials-label{
    width: 100%;
    margin-bottom: 2px;
  }
}

/* ===== CONTACTS CLEAN (NO PANELS) ===== */
.blk--contacts{
  padding: 96px 0 72px;
}

.contacts--clean .contacts__head{
  margin-bottom: 32px;
}

.contacts__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contacts__info p{
  margin: 0 0 10px;
  color: rgba(255,255,255,.8);
}

.contacts__form{
  display:grid;
  gap: 12px;
}

.contacts__form input{
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding: 12px 2px;
  color:#fff;
}

.contacts__form input::placeholder{
  color: rgba(255,255,255,.45);
}

.contacts__form small{
  color: rgba(255,255,255,.45);
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 900px){
  .contacts__grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }
}



/* ===== Liquid-glass blur topbar to avoid overlap on scroll ===== */
.topbar{
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* keep topbar readable and above content */
.topbar{
  z-index: 200;
}

/* Add top padding to sections so content doesn't hide under topbar */
.blk{
  scroll-margin-top: 92px;
}



/* ===== Drawer cleanup (per screenshot) ===== */

/* Header: only X */
.drawer__top{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding: 16px 16px 10px;
}
.drawer__spacer{ flex:1; }

.drawer__close{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.26);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: rgba(255,255,255,.92);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* 2) Плашки только при наведении (как в хедере) */
.drawer__nav a{
  display:block;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,.92);
  transition: border-color .18s ease, background .18s ease;
}
.drawer__nav a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}

.drawer__panel{
  padding-bottom: 18px;
}

/* Remove any leftover small headings */
.drawer__title,
.drawer__label{
  display:none !important;
}



/* ===== Topbar pills: hidden by default, reveal on hover/tap ===== */

/* Move topbar content to left */
.topbar__inner{
  justify-content: flex-start !important;
  gap: 14px !important;
}

/* Logo style (letters like in logo PDF: spaced ART + small home) */
.brand--arthome{
  display:flex;
  align-items:center;
  text-decoration:none;
  margin-right: 10px;
}
.arthome-logo{
  display:flex;
  align-items: baseline;
  gap: 8px;
}
.arthome-logo__art{
  font-size: 22px;
  letter-spacing: .28em; /* "по буквам" */
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 26px rgba(0,0,0,.55);
}
.arthome-logo__home{
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: rgba(255,255,255,.72);
}

/* Hide pills by default */
.topnav{
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

/* Reveal on hover (desktop) or when toggled (touch) */
.topbar:hover .topnav,
.topbar.nav-revealed .topnav,
.topbar:focus-within .topnav{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Slightly bigger pill text */
.topnav a{
  font-size: 13px !important;
  letter-spacing: .02em;
}

/* Keep CTA aligned */
.topbar__cta{ margin-left: 10px; }

/* On small screens we still use hamburger; pills remain hidden */
@media (max-width: 880px){
  .topnav{ display:none !important; }
}



/* ===== Use ORIGINAL ARThome logo image + true top-left placement ===== */
/* Логотип от левого верхнего угла с минимальным отступом (как на макете) */
.topbar{
  padding: 12px 18px 12px 12px !important; /* одинаковые отступы слева, сверху, снизу */
}
.topbar__inner{
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  justify-content: flex-start !important;
  gap: 14px !important;
}

/* Logo image: равные отступы от хедера слева, сверху, снизу; лого подрезано по краям, буквы не масштабируем */
.brand--arthome{
  display:flex;
  align-items:center;
  text-decoration:none;
  margin: 0 !important;
}
.topbar .brand--arthome{
  height: 60px; /* 12+60+12 = 84px общая высота хедера */
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  /* фон как у хедера — картинка лого визуально сливается с хедером */
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,0) 100%);
}
.topbar .brand--arthome .arthome-logo-img{
  height: 140px;
  width: auto;
  margin-top: 0;
  display: block;
  /* по вертикали центрируем: видна середина лого, края обрезаны */
}
.arthome-logo-img{
  height: 140px;
  width: auto;
  display:block;
  transform: none;
  filter: invert(1) drop-shadow(0 10px 26px rgba(0,0,0,.55)); /* тёмные буквы → белые */
  mix-blend-mode: lighten; /* светлый фон картинки сливается с хедером, видны только буквы */
}

/* Вся шапка реагирует на наведение — показываются все плашки (и пилли, и CTA) */
.topbar{
  pointer-events: auto;
}
.topbar__inner{
  pointer-events: auto;
}

/* Плашки и CTA всегда видимы; сдвиг нав и CTA вправо за счёт margin-left: auto на topnav */
.topnav, .topbar__cta{
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Все плашки в ряд: прямоугольник со скруглёнными углами, одинаковый отступ */
.topnav{
  display: flex !important;
  flex-wrap: nowrap;
  gap: 14px;
  margin-left: auto;
}
.topbar__inner{
  flex-wrap: nowrap;
}

/* Плашки: шрифт крупнее, форма — прямоугольник со скруглёнными углами; рамка при наведении */
.topnav .pill{
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px !important;
  letter-spacing: .02em;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.92);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.topnav .pill:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}

/* Кнопка «сферы» — всегда в жидком стекле, без наведения */
.topbar__cta{
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px !important;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  color: rgba(255,255,255,.95);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.topbar__cta:hover{
  border-color: rgba(255,255,255,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.12));
}

/* Keep hamburger logic on mobile */
@media (max-width: 880px){
  .topnav{ display:none !important; }
  .topbar__cta-wrap,
  .topbar__cta{ display:none !important; } /* CTA inside drawer only on mobile */
}

/* ===== Узкие экраны: единый формат карточек портфолио (без чередования 16:9 / 1:1) ===== */
@media (max-width: 1100px){
  #portfolio .p-card:nth-child(n){
    aspect-ratio: 1 / 1 !important;
  }
}

/* ===== Планшет / мобильный: примеры услуг — одна пропорция плиток, без разной высоты рядов ===== */
@media (max-width: 880px){
  #serviceExamplesPhotos .sx-photo,
  #serviceExamplesPhotos .sx-photo.sx-photo--portrait,
  #serviceExamplesPhotos .sx-photo.sx-photo--square,
  #serviceExamplesPhotos .sx-photo.sx-photo--landscape,
  #serviceExamplesPhotos .sx-photo[data-aspect]{
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    min-height: 0;
  }
  #serviceExamplesPhotos .sx-photo img{
    object-fit: cover !important;
    object-position: center;
  }
}

/* ===== Мобильный лайтбокс: фиксированная область превью, кадры не скачут по высоте ===== */
@media (max-width: 720px){
  .lightbox{
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(16px, env(safe-area-inset-bottom, 0px));
  }
  .lightbox__content{
    width: 100%;
    max-width: min(100vw - 20px, 100%);
  }
  .lightbox__img{
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: min(76vh, 92vw);
    object-fit: contain;
    object-position: center;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 14px;
  }
  .lightbox__caption{
    font-size: 13px;
    padding: 0 6px;
    max-width: 100%;
  }
  .lightbox__prev{
    left: 6px;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
  .lightbox__next{
    right: 6px;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
  .lightbox__close{
    top: max(8px, env(safe-area-inset-top, 0px));
    right: 8px;
  }
}
