:root{
  --bg:#2f3033;
  --bg-alt:#252629;
  --bg-header:#2d2e31cc;
  --bg-footer:#2d2e31cc;
  --header-height:64px;
  --header-height:64px;

  --body-color:#CFD0D8;
  --body-color-muted:rgba(207, 208, 216, 0.68);
  --heading-color:#e5e6eb;
  --line-color:#3D3E42;

  --heading-gradient:linear-gradient(135deg, #F5F5F7 10%, #CFCFD8 90%);
  --button-gradient:linear-gradient(135deg, #E0E1E6 10%, #B9BAC1 90%);

  --card-bg:#3A3B3F;
  --card-border-color:#3D3E42;
  --card-radius:4px;
  --button-radius:3px;
  --shadow:0 10px 0 rgba(0,0,0,0.35);

  --glass-blur:0px;
  --glass-sat:100%;
  --accent:#c5c5c9;
  --ring:rgba(203, 204, 206, 0.28);
  --img-soften-blur:0.28px;
  --img-soften-contrast:0.97;
  --img-soften-saturate:0.97;
}

*{box-sizing:border-box}
html, body{
  width:100%;
  overflow-x:hidden;
}
html{
  background:
    radial-gradient(1200px 900px at 12% -18%, #3a3b3fff 0%, transparent 62%),
    radial-gradient(900px 700px at 85% 6%, #2d2e32ff 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
body{
  margin:0;
  min-height:100vh;
  padding-top: calc(var(--header-height) + 32px);
  background:
    radial-gradient(1200px 900px at 12% -18%, #3a3b3fff 0%, transparent 62%),
    radial-gradient(900px 700px at 85% 6%, #2d2e32ff 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color:var(--body-color);
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  line-height:1.6;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1160px,calc(100% - 32px));
  margin:0 auto;
}

/* header */
.header{
  position:fixed;
  top:32px;
  left:0;
  right:0;
  background:var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line-color);
  z-index:50;
}
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:32px;
  background:var(--bg-header);
  border-bottom:1px solid var(--line-color);
  z-index:60;
}
.topbar__inner{
  height:32px;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
}
.topbar__contact{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:10px;
  min-width:0;
  white-space:nowrap;
}
.topbar__phone{
  display:inline-flex;
  align-items:center;
  appearance:none;
  border:none;
  background:none;
  color:var(--body-color);
  font-weight:600;
  font-size:13px;
  letter-spacing:0.2px;
  cursor:pointer;
  padding:0;
}
.topbar__phone:hover{
  text-decoration:underline;
}
.topbar__phone.is-copied{
  color:#fff;
}
.topbar__links{
  display:flex;
  gap:8px;
  margin-left:auto;
}
.topbar__address{
  display:inline-flex;
  align-items:center;
  color:var(--body-color);
  font-weight:600;
  font-size:13px;
  letter-spacing:0.2px;
  line-height:1;
  max-width:560px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.topbar__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:20px;
  border-radius:999px;
  border:1px solid var(--line-color);
  color:var(--body-color);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.1em;
}
.topbar__icon:hover{
  text-decoration:none;
  background:rgba(255,255,255,0.08);
}
.topbar__icon svg{
  width:18px;
  height:18px;
  fill: currentColor;
  display:block;
}
.topbar__icon--tg svg{
  width:14px;
  height:14px;
}

@media (max-width:520px){
  .topbar{
    display:block;
    height:14px;
    position:static;
  }
  .topbar__inner{
    height:14px;
  }
  .topbar__contact{
    gap:6px;
  }
  .topbar__phone{
    font-size:9px;
    line-height:1;
  }
  .topbar__icon{
    width:16px;
    height:12px;
  }
  .topbar__address{
    display:none;
  }
  .topbar__icon svg{
    width:8px;
    height:8px;
  }
  body{
    padding-top: 0;
  }
  .header{
    position:static;
    top:auto;
    left:auto;
    right:auto;
  }
}
.header__inner{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.nav a:not(.btn){
  padding: 8px 10px;
  border-radius: var(--button-radius);
  color: var(--body-color);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav a:not(.btn):hover{
  text-decoration: none;
  background: rgba(255,255,255,0.08);
}

.nav .btn{
  padding:10px 14px;
  color:#fff;
}

.brand{
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 24px;
}


/* buttons */
.btn{
  font-weight: 600;
  letter-spacing: 0.2px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:var(--button-radius);
  border:1px solid var(--card-border-color);
  background:rgba(42,42,45,0.9);
  color:var(--body-color);
  cursor:pointer;
}
.btn:hover{ text-decoration:none; }
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}
/* primary CTA - расчет стоимости */
.btn--accent{
  background: linear-gradient(180deg, #e6e6ea 0%, #b9bac1 100%);
  color: #111;
  border-color: rgba(230, 230, 230, 0.2);
  box-shadow: 0 10px 0 rgba(0,0,0,0.25);
}

.btn--accent:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 0 rgba(0,0,0,0.28);
  border-color: rgba(230, 230, 230, 0.35);
}

.btn--accent--nav{
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* typography */
.section{ padding:28px 0; }
.h1{
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  font-size:42px;
  margin:0 0 10px;
  letter-spacing:-0.2px;
  line-height:1.08;
  color:transparent;
  background:var(--heading-gradient);
  -webkit-background-clip:text;
  background-clip:text;
}
.h1--catalog{
  font-size:32px;
}
.h2{
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  font-size:24px;
  margin:0 0 10px;
  letter-spacing:0.2px;
  line-height:1.2;
  color:transparent;
  background:var(--heading-gradient);
  -webkit-background-clip:text;
  background-clip:text;
}
.p-muted{ color:var(--body-color-muted); margin:0 0 16px; }

@media (max-width:520px){
  .h1{ font-size:32px; }
}

/* cards / panels */
.card, .panel{
  background:var(--card-bg);
  border:1px solid var(--card-border-color);
  border-radius:var(--card-radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 0 rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.16);
}
.section-block .panel{
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.section-block .panel:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 0 rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.2);
}
.card__body{ padding:12px 12px 14px; }
.card__title{ margin:0 0 4px; font-weight:700; }
.card__meta{ margin:0; color:var(--body-color-muted); font-size:14px; }

.thumb{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  display:block;
  background:#1c1c1f;
  filter: blur(var(--img-soften-blur)) contrast(var(--img-soften-contrast)) saturate(var(--img-soften-saturate));
  transform: translateZ(0);
}

/* grid */
.grid{ display:grid; gap:14px; }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){
  .grid--4{ grid-template-columns:repeat(2,1fr); }
  .grid--3{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:520px){
  .grid--4,.grid--3{ grid-template-columns:1fr; }
}

/* forms */
.form{ display:grid; gap:10px; max-width:520px; }
.form input, .form select, .form textarea{
  width:100%;
  padding:10px 12px;
  border-radius:var(--button-radius);
  border:1px solid var(--line-color);
  background:rgba(255,255,255,0.95);
  color:#0c1014;
}
.form textarea{ min-height:110px; resize:vertical; }
form.form{
  border-radius:var(--button-radius);
}

/* project layout */
.project{
  display:grid;
  gap:0;
  grid-template-columns:1fr;
  align-items:start;
}
.page-project .section-block{
  margin:18px 0;
  padding:28px;
}
.project__back{
  margin-bottom:14px;
}
.project__header{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  align-items:end;
}
.project__title{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.15;
}
.project__cta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.project__cta-note{
  font-size:13px;
  color:var(--body-color-muted);
}
.project__bottom-cta{
  margin-top:16px;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
@media (max-width:900px){
  .project__header{ grid-template-columns:1fr; }
  .project__cta{ align-items:flex-start; }
}
.panel__body{ padding:14px; }

/* gallery player */
.gallery-player{ position:relative; padding:12px; }
.gmain{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border-radius:var(--card-radius);
  display:block;
  background:#1c1c1f;
  position:relative;
  z-index:1;
  cursor:pointer;
  filter: blur(var(--img-soften-blur)) contrast(var(--img-soften-contrast)) saturate(var(--img-soften-saturate));
}
.gthumbs{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
}
@media (max-width:900px){ .gthumbs{ grid-template-columns:repeat(4,1fr);} }
@media (max-width:520px){ .gthumbs{ grid-template-columns:repeat(3,1fr);} }

.gthumb{
  border:1px solid var(--card-border-color);
  background:transparent;
  padding:0;
  border-radius:var(--card-radius);
  overflow:hidden;
  cursor:pointer;
  opacity:0.85;
}
.gthumb.is-active{ opacity:1; border-color:rgba(255,255,255,0.35); }
.gthumb img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}
.gbtn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--card-border-color);
  background:rgba(42,42,45,0.65);
  color:var(--body-color);
  backdrop-filter: blur(10px) saturate(140%);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  z-index:10;
}
.gbtn--left{ left:18px; }
.gbtn--right{ right:18px; }

/* project gallery tweaks */
.project__gallery{
  padding:0;
}
.project__gallery .gmain-wrap{
  position:relative;
}
.project__gallery .gmain{
  border-radius:var(--card-radius);
  max-height:360px;
  height:auto;
  aspect-ratio:16 / 10;
  object-fit:contain;
  background:rgba(24,24,27,0.8);
}
.project__gallery .gmain-wrap{
  border-radius:var(--card-radius);
  overflow:hidden;
}
.project__gallery .gthumbs{
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
}
.project__gallery .gbtn{
  width:44px;
  height:44px;
  font-size:26px;
  background:rgba(10,18,25,0.55);
  border-color: rgba(255,255,255,0.25);
  color:#fff;
  top:50%;
  transform: translateY(-50%);
  backdrop-filter: blur(2px);
}
.project__gallery .gbtn:hover{
  box-shadow: 0 12px 22px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.35);
}
.project__gallery .gbtn--left{ left:12px; }
.project__gallery .gbtn--right{ right:12px; }
.gcounter{
  position:absolute;
  top:12px;
  left:12px;
  z-index:12;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--card-border-color);
  background:rgba(42,42,45,0.7);
  color:var(--heading-color);
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  font-weight:600;
}
.project__gallery .gthumb.is-active{
  opacity:1;
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

/* footer */
.footer{
  border-top:1px solid var(--line-color);
  padding:18px 0;
  color:var(--body-color-muted);
  font-size:14px;
  background:transparent;
}

/* modal */
.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100;
  opacity:0;
  pointer-events:none;
  transition: opacity 360ms ease;
}
.modal.is-open{
  opacity:1;
  pointer-events:auto;
}
.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
/*.modal__dialog{
  position:relative;
  width:min(720px,calc(100% - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  background:var(--card-bg);
  border-radius:22px;
  border:1px solid var(--card-border-color);
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
  padding:4px;
  z-index:1;
  transform: translateY(24px) scale(0.98);
  transition: transform 420ms ease, opacity 420ms ease;
  opacity:0;
}*/

.modal__dialog{
  position:relative;
  width:min(560px,calc(100% - 32px)); /* было 720 */
  max-height:calc(100vh - 48px);
  overflow:auto;
  background:var(--card-bg);
  border-radius:var(--button-radius);
  border:1px solid var(--card-border-color);
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
  padding:8px;
  z-index:1;
  transform: translateY(24px) scale(0.98);
  transition: transform 420ms ease, opacity 420ms ease;
  opacity:0;
}

.modal.is-open .modal__dialog{
  transform: translateY(0) scale(1);
  opacity:1;
}
.modal__content{
  width:100%;
  max-width:520px;      /* = ширина формы */
  margin:0 auto;        /* центрируем контейнер */
  padding: 4px 0px 14px;
}
.modal__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:100%;
}
.modal__close{
  border:1px solid var(--card-border-color);
  background:rgba(228,228,231,0.95);
  border-radius:999px;
  width:36px;
  height:36px;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.modal__close{
  margin-left:auto;
}
.modal__close:hover{
  border-color: rgba(18,78,115,0.28);
  box-shadow: 0 8px 16px rgba(18,78,115,0.16);
}
.modal__success .panel{
  color:var(--heading-color);
  border-color: rgba(18,78,115,0.18);
  border-radius:var(--button-radius);
}
@media (prefers-reduced-motion: reduce){
  .modal,
  .modal__dialog{
    transition:none;
    transform:none;
    opacity:1;
  }
}

/* gallery modal */
.gallery-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:120;
  opacity:0;
  pointer-events:none;
  transition: opacity 280ms ease;
}
.gallery-modal.is-open{
  opacity:1;
  pointer-events:auto;
}
.gallery-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,18,25,0.6);
  backdrop-filter: blur(2px);
}
.gallery-modal__dialog{
  position:relative;
  width:min(1100px,calc(100% - 40px));
  max-height:calc(100vh - 40px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1;
  overflow:visible;
}
.gallery-modal__img{
  max-width:100%;
  max-height:calc(100vh - 90px);
  object-fit:contain;
  border-radius:var(--card-radius);
  background:#0b141c;
  box-shadow: 0 28px 60px rgba(0,0,0,0.35);
  z-index:1;
  filter: blur(var(--img-soften-blur)) contrast(var(--img-soften-contrast)) saturate(var(--img-soften-saturate));
}
.gallery-modal__close{
  position:absolute;
  top:16px;
  right:16px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(10,18,25,0.6);
  color:#fff;
  border-radius:999px;
  width:40px;
  height:40px;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  z-index:5;
}
.gallery-modal__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(10,18,25,0.55);
  color:#fff;
  cursor:pointer;
  font-size:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:5;
}
.gallery-modal__nav--left{ left:16px; }
.gallery-modal__nav--right{ right:16px; }
@media (prefers-reduced-motion: reduce){
  .gallery-modal{ transition:none; }
}

/* === modal: tighten inner spacing only here === */

/* 1) убираем внутренний "бортик" у окна модалки */
.modal .modal__dialog { padding: 0 !important; }

/* 2) убираем боковые отступы у контента (оставляем немного сверху/снизу) */
.modal .modal__content { padding: 6px 0 10px !important; }

/* 3) главная причина "пустоты": padding у panel__body.
   уменьшаем его ТОЛЬКО в модалке */
.modal .panel__body { padding: 10px !important; }

/* 4) если форма сама ограничена max-width и центрируется, оставляем,
   но можно сделать чуть шире, чтобы визуально не было "воздуха" */
.modal .form { max-width: 100%; }

/* Landing blocks (home) */
.section-block{
  position:relative;
  margin:36px 0;
  padding:40px;
  border-radius:var(--card-radius);
  background:var(--section-bg, transparent);
  border:1px solid var(--section-border, transparent);
  box-shadow: none;
  color:var(--section-text, var(--body-color));
}
.section-block.section--dark{
  --section-bg: transparent;
  --section-border: transparent;
  --section-text: var(--body-color);
  --section-muted: var(--body-color-muted);
}
.section-block.section--light{
  --section-bg: #CECAC2;
  --section-border: transparent;
  --section-text: #2b2b2b;
  --section-muted: rgba(60, 58, 56, 0.7);
  --heading-gradient: linear-gradient(135deg, #1f1f20 10%, #5f5c59 90%);
  --card-bg: #5F5C59;
  --card-border-color: rgba(61, 62, 66, 0.28);
  --line-color: rgba(61, 62, 66, 0.22);
  --body-color: #CFD0D8;
}
.section-block::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:var(--card-radius);
  background:linear-gradient(135deg, rgba(255,255,255,0.05), transparent 60%);
  pointer-events:none;
}
.section-block > *{
  position:relative;
  z-index:1;
}
.section-block .p-muted{
  color:var(--section-muted, var(--body-color-muted));
}

.section-block.section--light{
  width:100vw;
  margin-left:calc(50% - 50vw);
  padding-left:calc(50vw - 50% + 40px);
  padding-right:calc(50vw - 50% + 40px);
  border-radius:0;
}
.section-block.section--light::after{
  border-radius:0;
  background:none;
}
.section-block.section--light .panel,
.section-block.section--light .card{
  color: #CFD0D8;
  box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}
.section-block.section--light .panel .h2,
.section-block.section--light .panel .h1,
.section-block.section--light .card .card__title{
  color:transparent;
  background:linear-gradient(135deg, #F1F1F2 10%, #CFCFD8 90%);
  -webkit-background-clip:text;
  background-clip:text;
}
.section-block.section--light .panel .p-muted,
.section-block.section--light .card .card__meta{
  color: rgba(207, 208, 216, 0.78);
}
.section-block.section--light .panel:hover,
.section-block.section--light .card:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  border-color: rgba(0,0,0,0.18);
}
.section-block.section--light .btn{
  background:#5F5C59;
  color:#f2f0ec;
  border-color:#3D3E42;
  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
}
.section-block.section--light .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.28);
}

.hero{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:18px;
  align-items:stretch;
  padding:28px 0 12px;
}
.hero--full{
  position:relative;
  grid-template-columns:1fr;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-top:0;
  padding:20px 0 16px;
  min-height:360px;
  overflow:hidden;
}
.page-home .hero--full{
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(20px + var(--header-height));
}
.hero--full::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-bg);
  background-size:cover;
  background-position:center;
  filter: blur(6px);
  transform: scale(1.03);
  opacity:0.7;
}
.hero--full::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(20,20,22,0.75), rgba(20,20,22,0.6));
}
.hero--full > *{
  position:relative;
  z-index:1;
}
@media (max-width:900px){
  .hero{ grid-template-columns:1fr; }
  .hero--full{
    margin-top:0;
    width:100%;
    margin-left:0;
    padding:14px 0 13px;
  }
  .page-home .hero--full{
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(14px + var(--header-height));
  }
}
.hero__card{
  padding:18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.24);
}
.hero--full .hero__card{
  background: rgba(58,59,63,0.48);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px) saturate(130%);
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  display:grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap:24px;
  align-items:start;
  padding:8px 18px;
}
.hero--full .hero__card::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:6px;
  background: radial-gradient(120% 120% at 50% 50%, rgba(58,59,63,0.18), transparent 60%);
  filter: blur(10px);
  pointer-events:none;
  z-index:-1;
}
.hero__kicker{
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  color: var(--body-color-muted);
  margin-bottom: 8px;
  max-width: 86ch;
  white-space: nowrap;
}
.hero__logo{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:260px;
  padding-top:85px;
}
.hero__logo-stack{
  position:relative;
  width:260px;
  height:260px;
  transform: scale(1.6);
  transform-origin: center;
}
.hero__logo-blade,
.hero__logo-center{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}
.hero__logo-blade{
  z-index:1;
  animation: blade-rotate 28s linear infinite;
  transform-origin: 50% 50%;
}
.hero__logo-center{
  z-index:2;
}
@keyframes blade-rotate{
  from{ transform: translateY(-28px) scale(0.56) rotate(0deg); }
  to{ transform: translateY(-28px) scale(0.56) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .hero__logo-blade{
    animation: none;
  }
}
@media (max-width:900px){
  .hero--full .hero__card{
    grid-template-columns:1fr;
  }
  .hero__logo{
    min-height:200px;
  }
}
.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.works-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
}
.hero__image{
  min-height:260px;
  border-radius:var(--card-radius);
  border:1px solid var(--card-border-color);
  box-shadow: 0 6px 14px rgba(0,0,0,0.24);
  overflow:hidden;
  background:var(--card-bg);
}
.hero__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero__meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
  color:var(--body-color-muted);
  font-size:13px;
}
.hero__meta > div,
.hero__meta-btn{
  padding:4px 10px;
  border:1px dashed var(--line-color);
  border-radius:var(--card-radius);
  background:#3A3B3F;
  color:var(--heading-color);
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  font-weight:200;
  text-transform:uppercase;
  letter-spacing:0.12em;
}
.hero__meta-btn{
  appearance:none;
  cursor:pointer;
}
.hero__meta-btn:hover{
  filter:brightness(1.05);
}

/* ================= HERO TYPOGRAPHY FIX ================= */

/* hero title - тяжелее, компактнее, премиум */
.hero .h1{
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-weight: 900;
  max-width: 26ch;
}

/* текст под заголовком - спокойнее и уже */
.hero .p-muted{
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}

/* на мобильных */
@media (max-width:520px){
  .modal{
    align-items:center;
    padding:12px 0;
    --modal-pad:16px;
  }
  .modal__dialog{
    width:88vw;
    max-width:320px;
    height:auto;
    max-height:90dvh;
    margin:0;
    border-radius:16px;
    overflow:hidden;
  }
  .modal__content{
    max-width:320px;
    margin:0 auto;
    padding: 0;
  }
  .modal__top{
    gap:8px;
    padding: 8px var(--modal-pad) 6px;
  }
  .modal__body{
    max-height:calc(90dvh - 140px);
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    padding:0 var(--modal-pad) 12px;
  }
  .modal .form{
    max-width:none;
  }
  .modal__close{
    width:28px;
    height:28px;
    min-width:28px;
    min-height:28px;
    padding:0;
    border-radius:50%;
    aspect-ratio:1 / 1;
    line-height:1;
    font-size:16px;
    background:rgba(228,228,231,0.95);
    color:#111;
    -webkit-appearance:none;
    appearance:none;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .modal__close:focus,
  .modal__close:active{
    color:#111;
  }
  .modal__body form.form{
    width:100% !important;
    max-width:none !important;
    margin:0;
  }
  .modal__body .form input,
  .modal__body .form select,
  .modal__body .form textarea{
    width:100%;
  }
  .modal__body textarea{
    min-height:110px;
  }
  .modal .panel__body{
    padding:3px !important;
  }
  .hero .h1{
    font-size: 34px;
  }
  .hero__kicker{
    white-space: normal;
  }
}


.features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
@media (max-width:900px){ .features{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .features{ grid-template-columns:1fr;} }

.feature{
  padding:14px;
}
.feature__title{ margin:0 0 6px; font-weight:700; }
.feature__text{ margin:0; color:var(--body-color-muted); font-size:14px; }

.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap:14px;
}
.steps .panel.step{
  display:flex;
  flex-direction:column;
}
@media (max-width:900px){ .steps{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .steps{ grid-template-columns:1fr;} }

.step{
  padding:14px;
}
.step__num{
  font-weight:600;
  color:var(--heading-color);
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  letter-spacing:0.2px;
}
.step__title{ margin:6px 0 4px; font-weight:700; }
.step__text{ margin:0; color:var(--body-color-muted); font-size:14px; }

/* section head */
.section-head .p-muted{
  margin:6px 0 0;
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-size:12px;
}

/* production page */
.page-production .section{
  padding-top:28px;
}
.about-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  grid-template-areas:
    "intro ."
    "body video";
  gap:24px;
  align-items:start;
}
.about-intro{
  grid-area:intro;
}
.prod-body{
  grid-area:body;
  display:grid;
  gap:16px;
  position:relative;
}
.about-video{
  grid-area:video;
  display:flex;
  justify-content:flex-end;
  align-self:stretch;
}
.about-video-card{
  width:100%;
  max-width:420px;
  height:100%;
  position:relative;
  border-radius:var(--card-radius);
  border:1px solid var(--card-border-color);
  background:var(--card-bg);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.about-video__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#0f1012;
}
.about-video__fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--body-color-muted);
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:var(--card-bg);
  opacity:1;
  pointer-events:none;
  transition: opacity 200ms ease;
}
.prod-hero{
  position:relative;
  width:100vw;
  margin: 0 calc(50% - 50vw);
  overflow:hidden;
  background:
    radial-gradient(1200px 900px at 12% -18%, #3a3b3fff 0%, transparent 62%),
    radial-gradient(900px 700px at 85% 6%, #2d2e32ff 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  isolation:isolate;
  height: min(40vh, 400px);
}
.prod-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  background: linear-gradient(
    to bottom,
    rgba(18,18,18,0) 0%,
    rgba(18,18,18,0.18) 55%,
    rgba(18,18,18,0.45) 75%,
    rgba(47,48,51,0.7) 90%,
    rgba(47,48,51,0.85) 100%
  );
  pointer-events:none;
  z-index:1;
}
.prod-hero__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  z-index:0;
}
.prod-hero__fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--body-color-muted);
  font-size:14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:var(--card-bg);
  opacity:1;
  pointer-events:none;
  transition: opacity 200ms ease;
  z-index:0;
}
.prod-hero__content{
  position:relative;
  z-index:2;
  width:min(1160px,calc(100% - 32px));
  margin:0 auto;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  padding:36px 0 28px;
}
.page-production .prod-hero + section{
  padding-top:28px;
}
.prod-body .panel:first-of-type{
  margin-top:0;
  border-top-color: transparent;
}
.prod-card{
  padding:18px;
}
.prod-equip__title{
  margin:10px 0 8px;
  color:var(--heading-color);
  font-weight:600;
}
.prod-equip__list{
  margin:0;
  padding-left:18px;
  color:var(--body-color-muted);
  font-size:14px;
  line-height:1.55;
}
.prod-equip__list li{
  margin:0 0 4px;
}
.prod-equip__list li:last-child{
  margin-bottom:0;
}

/* directions page */
.direction-list{
  display:grid;
  gap:18px;
  margin-top:12px;
}
.direction-block{
  padding:18px;
}
.direction-block__head .p-muted{
  margin:6px 0 0;
}
.direction-block__list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.direction-block__btn{
  background:rgba(42,42,45,0.9);
}

@media (max-width:900px){
  .about-layout{
    grid-template-columns:1fr;
    grid-template-areas:
      "video"
      "intro"
      "body";
  }
  .about-video{
    justify-content:flex-start;
    align-self:auto;
  }
  .about-video-card{
    height:auto;
    aspect-ratio:9 / 16;
  }
  .prod-hero{
    height: min(40vh, 360px);
  }
}

@media (max-width:520px){
  .prod-hero{
    height: min(36vh, 320px);
  }
}

/* contacts page */
.page-contacts .contacts__intro{
  margin:6px 0 12px;
}
.page-contacts .contacts__cards{
  margin:12px 0;
  padding:18px;
}
.page-contacts .contacts__cards p{
  margin:0 0 8px;
  font-size:18px;
}
.page-contacts .contacts__cards p:last-child{
  margin-bottom:0;
}
.page-contacts .contacts__note{
  margin:12px 0;
}
.page-contacts .contacts__form-title{
  margin:12px 0 12px;
}
.page-contacts .contacts__form{
  margin:12px 0;
  padding:18px;
}
.page-contacts .contacts__form .panel__body{
  padding:0;
}

/* trust */
.trust__item{
  padding:14px;
}
.trust__value{
  font-size:24px;
  font-weight:200;
  color:var(--heading-color);
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
}
.trust__title{
  margin-top:4px;
  font-weight:700;
}

/* reviews */
.review{
  padding:14px;
}
.review__name{
  font-weight:700;
  font-family:"Instrument Sans","Trebuchet MS","Verdana",sans-serif;
  color:var(--heading-color);
}
.review__city{
  color:var(--body-color-muted);
  font-size:14px;
  margin-bottom:6px;
}
.review__text{
  margin:0;
}

/* collaboration */
.collab{
  display:grid;
  grid-template-columns:1.4fr 0.8fr;
  gap:16px;
  align-items:stretch;
}
.collab__card{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:center;
}
.collab__note{
  margin:0;
  color:var(--body-color-muted);
}
.collab__list{
  margin:10px 0 0;
  padding-left:18px;
}
@media (max-width:900px){
  .collab{ grid-template-columns:1fr; }
}

/* motion */
.reveal{
  opacity:1;
  transform:none;
}
body.animations-ready .reveal{
  opacity:0;
  transform: translateY(var(--reveal-offset, 18px));
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
body.animations-ready .reveal.is-in{
  opacity:1;
  transform:none;
}

@keyframes pulse-glow{
  0%{ box-shadow: 0 0 0 rgba(255,255,255,0); }
  100%{ box-shadow: 0 12px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.12); }
}
.btn,
.card,
.panel,
.gbtn,
.modal__close,
.nav a{
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.btn:hover,
.btn:focus-visible,
.card:hover,
.panel:hover,
.gbtn:hover,
.gbtn:focus-visible,
.modal__close:hover,
.modal__close:focus-visible,
.nav a:hover,
.nav a:focus-visible{
  box-shadow: 0 12px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.12);
}

/* expand/collapse */
.collapse{
  display:grid;
  grid-template-rows:0fr;
  transition: grid-template-rows 320ms ease;
}
.collapse__inner{
  overflow:hidden;
  opacity:0;
  transition: opacity 240ms ease;
}
.collapse.is-open{
  grid-template-rows:1fr;
}
.collapse.is-open .collapse__inner{
  opacity:1;
}

@media (prefers-reduced-motion: reduce){
  body.animations-ready .reveal{
    opacity:1;
    transform:none;
    transition:none;
  }
  .btn,
  .card,
  .panel,
  .gbtn,
  .modal__close,
  .nav a{
    transition:none;
    animation:none;
  }
  .collapse,
  .collapse__inner{
    transition:none;
  }
}

/* mobile adjustments */
@media (max-width:900px){
  .header__inner{
    flex-wrap:wrap;
    gap:10px;
  }
  .nav{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    justify-content:flex-start;
  }
  .section-block{
    margin:22px 0;
    padding:26px;
  }
  .section-block.section--light{
    width:100%;
    margin-left:0;
    padding-left:26px;
    padding-right:26px;
  }
  .page-project .section-block{
    margin:16px 0;
    padding:22px;
  }
  .project__header{
    grid-template-columns:1fr;
  }
  .project__cta{
    align-items:flex-start;
  }
}

@media (max-width:520px){
  .gallery-modal__close{
    top:8px;
    right:8px;
    width:26px;
    height:26px;
    min-width:26px;
    min-height:26px;
    aspect-ratio:1 / 1;
    font-size:16px;
    border-radius:999px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    box-sizing:border-box;
  }
  .gallery-modal__dialog{
    width:calc(100% - 16px);
    max-height:calc(100vh - 16px);
  }
  .gallery-modal__img{
    max-height:calc(100vh - 140px);
  }
  .gallery-modal__nav{
    width:26px;
    height:26px;
    min-width:26px;
    min-height:26px;
    aspect-ratio:1 / 1;
    font-size:16px;
    border-radius:999px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    box-sizing:border-box;
  }
  .gallery-modal__nav--left{ left:8px; }
  .gallery-modal__nav--right{ right:8px; }

  .portfolio-modal__dialog{
    width:calc(100% - 16px);
    max-height:calc(100vh - 16px);
    padding:12px;
  }
  .portfolio-modal__viewer{
    height:300px;
  }
  .portfolio-modal__close{
    top:8px;
    right:8px;
    width:26px;
    height:26px;
    min-width:26px;
    min-height:26px;
    aspect-ratio:1 / 1;
    font-size:16px;
    border-radius:999px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    box-sizing:border-box;
  }
  .portfolio-modal__nav{
    width:26px;
    height:26px;
    min-width:26px;
    min-height:26px;
    aspect-ratio:1 / 1;
    font-size:16px;
    border-radius:999px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    box-sizing:border-box;
  }
  .portfolio-modal__nav--left{ left:8px; }
  .portfolio-modal__nav--right{ right:8px; }
}
@media (max-width:520px){
  :root{
    --header-height:48px;
  }
  body{
    padding-top: 0;
  }
  .header{
    position:static;
    top:auto;
    left:auto;
    right:auto;
  }
  .topbar{
    position:static;
  }
  .header__inner{
    padding:6px 0;
    gap:8px;
  }
  .brand{
    font-size:16px;
  }
  .nav{
    gap:4px;
  }
  .nav a:not(.btn){
    padding:4px 6px;
    font-size:12px;
    line-height:1.2;
  }
  .section-block{
    margin:16px 0;
    padding:20px;
    border-radius:18px;
  }
  .section-block.section--light{
    padding-left:calc(50vw - 50% + 20px);
    padding-right:calc(50vw - 50% + 20px);
  }
  .page-project .section-block{
    margin:12px 0;
    padding:18px;
  }
  .page-home .hero--full{
    margin-top:0;
    padding-top:14px;
  }
  .hero__logo{
    min-height:180px;
    padding-top:40px;
  }
  .hero__logo-stack{
    transform: scale(1.2);
  }
  .hero__image{
    min-height:200px;
  }
  .hero__actions .btn{
    flex:1 1 auto;
  }
  .btn{
    padding:9px 12px;
    font-size:14px;
  }
  .h2{
    font-size:20px;
  }
  .p-muted{
    font-size:13px;
  }
  .card__title{
    font-size:14px;
  }
  .card__meta{
    font-size:12px;
  }
  .works-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .btn--works{
    width:100%;
    justify-content:center;
  }
  .section-block.section--light .btn{
    width:100%;
    justify-content:center;
  }
  .project__bottom-cta{
    flex-direction:column;
    align-items:stretch;
  }
  .project__bottom-cta .btn{
    width:100%;
  }
  .project__gallery .gmain{
    max-height:260px;
    border-radius:var(--card-radius);
  }
  .project__gallery .gthumbs{
    grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  }
  .project__gallery .gbtn{
    width:34px;
    height:34px;
    font-size:20px;
  }
  .modal__dialog{
    width:calc(100% - 16px);
    max-height:calc(100vh - 16px);
    margin:8px 0;
    border-radius:var(--button-radius);
    overflow:auto;
  }
  .modal__close{
    width:32px;
    height:32px;
  }
  .modal__content{
    max-width:none;
    padding: 6px 0 12px;
  }
  .modal__body{
    max-height:calc(100vh - 180px);
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width:520px){
  .page-home .features,
  .page-home .steps,
  .page-home .trust{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding:4px 12px 8px;
    margin:8px -12px 0;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .page-home .features > *,
  .page-home .steps > *,
  .page-home .trust > *{
    flex:0 0 82%;
    scroll-snap-align:start;
  }
  .page-home .features::-webkit-scrollbar,
  .page-home .steps::-webkit-scrollbar,
  .page-home .trust::-webkit-scrollbar{
    display:none;
  }
}

@media (max-width:520px){
  .page-home .section--light .grid--3,
  .page-home .reviews{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding:4px 12px 8px;
    margin:8px -12px 0;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .page-home .section--light .grid--3 > * ,
  .page-home .reviews > *{
    flex:0 0 82%;
    scroll-snap-align:start;
  }
  .page-home .section--light .grid--3::-webkit-scrollbar,
  .page-home .reviews::-webkit-scrollbar{
    display:none;
  }
}

/* page transition */
@keyframes page-fade-in{
  from{ opacity:0; }
  to{ opacity:1; }
}
.page-fade main{
  animation: page-fade-in 240ms ease-out both;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce){
  .page-fade main{
    animation:none;
  }
}
.cta-panel{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

/* requisites block */
.req-block{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}
.req-list{
  display:grid;
  gap:6px;
  margin-top:10px;
  font-size:14px;
}


/* portfolio modal */
.portfolio-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:130;
  opacity:0;
  pointer-events:none;
  transition: opacity 320ms ease;
}
.portfolio-modal.is-open{
  opacity:1;
  pointer-events:auto;
}
.portfolio-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.portfolio-modal__dialog{
  position:relative;
  width:min(960px,calc(100% - 40px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  background:var(--card-bg);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--card-radius);
  padding:18px;
  z-index:1;
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
}
.portfolio-modal__close{
  position:absolute;
  top:12px;
  right:12px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(0,0,0,0.3);
  color:#fff;
  border-radius:999px;
  width:36px;
  height:36px;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.portfolio-modal__viewer{
  position:relative;
  margin-top:12px;
  border-radius:var(--card-radius);
  overflow:hidden;
  background:#1c1c1f;
  height:560px;
}
.portfolio-modal__img{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  image-rendering: auto;
  image-rendering: smooth;
  image-rendering: -webkit-optimize-contrast;
  filter: blur(var(--img-soften-blur)) contrast(var(--img-soften-contrast)) saturate(var(--img-soften-saturate));
}
.portfolio-modal__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color:#fff;
  cursor:pointer;
  font-size:26px;
  z-index:3;
}
.portfolio-modal__nav--left{ left:12px; }
.portfolio-modal__nav--right{ right:12px; }
@media (max-width:520px){
  .portfolio-modal__dialog{ width:calc(100% - 20px); }
  .portfolio-modal__viewer{ height:300px; }
}

.portfolio-modal__empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,0.75);
  font-size:14px;
  letter-spacing:0.08em;
  z-index:1;
}
.portfolio-modal__empty[hidden]{
  display:none;
}
