/* Lubovnaya Textile Studio — этап 1: статика */
:root {
  --ink: #000;
  --muted: #adadad;
  --beige: rgba(225, 210, 202, 0.22);
  --beige-solid: #f8f5f3;
  --wrap: 1120px;
  --f-head: 'Poiret One', sans-serif;      /* в макете Poiret One */
  --f-body: 'Montserrat', sans-serif;      /* в макете e-Ukraine — ближайший по пропорциям Google-шрифт */
  --f-num: 'Pinyon Script', cursive;       /* в макете Sloop Script — ближайший по цифрам Google-шрифт */
  --accent: #66a106;                       /* зелёная кнопка звонка */
  --terra: rgba(219, 124, 46, .39);        /* терракотовые номера проектов */
  --f-note: 'Cormorant', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); font-weight: 300; font-size: 15px; line-height: 1.45; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.h2 { font-family: var(--f-head); font-weight: 400; font-size: 35px; text-transform: uppercase; line-height: 1.15; }
.h3 { font-family: var(--f-head); font-weight: 400; font-size: 23px; line-height: 1.2; }
.center { text-align: center; }
.section { padding: 100px 0; }
.beige { background: var(--beige); }
.num { font-family: var(--f-num); font-size: 45px; line-height: 1; }

/* Заглушки для фото до выгрузки из Figma */
.ph { position: relative; background: #e9e4e0; overflow: hidden; }
.ph::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-size: 11px; color: #9b918a; letter-spacing: .05em; }
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; }
/* фото загрузилось — прячем подпись заглушки; у логотипов и PNG-мокапов убираем и фон */
.ph:has(> img)::before { content: none; }
.nav__logo.ph:has(> img), .footer__logo.ph:has(> img), .viz__ipad.ph:has(> img), .phone-img.ph:has(> img) { background: none; }
.nav__logo img, .footer__logo img, .viz__ipad img, .phone-img img { object-fit: contain; }

/* Кнопки (в макете — рамка-«Union») */
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 210px; height: 43px; padding: 0 24px; border: 1px solid #000; border-radius: 22px; font-size: 12px; transition: background .2s, color .2s; }
.btn:hover { background: #000; color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: #000; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Шапка */
.hero { position: relative; color: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg.ph { background: #6b4a36; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .48); z-index: -1; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 42px 0 0; }
.nav__logo { width: 113px; height: 118px; }
.nav__logo.ph { background: rgba(255,255,255,.15); }
.nav__links { display: flex; gap: clamp(24px, 9vw, 130px); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 200; }
.nav__links a:hover { opacity: .7; }
.nav__call { width: 49px; height: 49px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .2s, filter .2s; }
.nav__call svg { width: 25px; height: 25px; }
.nav__call:hover { transform: scale(1.06); filter: brightness(1.08); }
/* бургер — только на телефоне */
.nav__burger { display: none; position: relative; z-index: 60; width: 44px; height: 44px; margin-left: 14px; border: 0; background: none; color: inherit; cursor: pointer; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .2s; }
.nav__burger span:nth-child(1) { top: 15px; } .nav__burger span:nth-child(2) { top: 21px; } .nav__burger span:nth-child(3) { top: 27px; }
.nav.is-open .nav__burger { color: #fff; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hero__title { margin: 70px auto 0; text-align: center; font-family: var(--f-head); font-size: clamp(48px, 9vw, 120px); line-height: .95; text-transform: uppercase; letter-spacing: .03em; }
.hero__title img { width: min(844px, 100%); height: auto; margin-inline: auto; }
.hero__texts { margin: auto auto 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; font-weight: 400; }
.hero__texts p { max-width: 380px; }
.hero__texts p:last-child { justify-self: end; }

/* Обо мне */
.about { display: grid; grid-template-columns: 364px 1fr; gap: 128px; align-items: center; }
.about__img { height: 486px; }
.about__text p + p { margin-top: 1em; }
.about h2 { margin-bottom: 50px; }

/* Работы */
.works__head { position: relative; margin-bottom: 70px; }
.works__arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.works__arrows button { pointer-events: auto; width: 45px; height: 45px; border-radius: 50%; border: 1px solid #000; background: none; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.works__arrows button svg { width: 22px; height: 22px; }
.works__arrows button:hover { background: #000; color: #fff; }
/* лента листается стрелками (js/main.js) и свайпом; ступенчатый ряд как в макете */
.works__track { display: flex; gap: 22px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.works__track::-webkit-scrollbar { display: none; }
.works__track .ph { flex: 0 0 calc((100% - 66px) / 4); aspect-ratio: 329 / 494; scroll-snap-align: start; }
.works__track .ph:nth-child(4n+1) { margin-top: 110px; }
.works__track .ph:nth-child(4n+3) { margin-top: 245px; }
.works__track .ph:nth-child(4n+4) { margin-top: 160px; }
.works__track:focus-visible { outline: 1px solid #000; outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .works__track { scroll-behavior: auto; } }
.works__more { margin-top: 70px; text-align: center; }

/* Связь (вместо формы) */
.contact { display: grid; grid-template-columns: 1fr 512px; gap: 65px; }
.contact__text h2 { margin-bottom: 50px; }
.contact__text p { max-width: 390px; margin-bottom: 1.2em; }
.contact__img { height: 749px; }
.contact .btns { margin-top: 40px; }
.contact__links { margin-top: 40px; display: grid; gap: 14px; font-family: var(--f-head); font-size: 16px; }

/* Этапы */
.steps h2 { margin-bottom: 60px; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; }
.step__img { height: 209px; margin-bottom: 4px; }
.step h3 { margin: 8px 0 24px; }
.step__note { font-family: var(--f-note); font-style: italic; font-size: 12px; margin-top: 14px; }
.steps__cta { margin-top: 60px; text-align: center; }

/* Преимущества */
.adv h2 { margin-bottom: 50px; }
.adv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.adv__icon { height: 56px; display: grid; place-items: center; font-size: 34px; margin-bottom: 30px; }
.adv h3 { margin-bottom: 28px; }
.adv p { max-width: 268px; margin: 0 auto; }

/* 3D-визуализация */
.viz { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.viz h2 { font-size: 23px; margin-bottom: 30px; }
.viz p { margin-bottom: 40px; }
.viz__media { position: relative; height: 610px; }
.viz__ipad { position: absolute; right: 0; top: 0; width: 626px; height: 427px; max-width: 100%; }
.viz__curtain { position: absolute; left: 0; bottom: 0; width: 258px; height: 322px; }

/* Цены */
.prices__band { padding: 10px 0; }
.prices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 90px; margin-top: 64px; }
.price__img { aspect-ratio: 1; margin-bottom: 22px; }
.price h3 { margin-bottom: 10px; }
.price__cost { font-family: var(--f-head); font-size: 16px; display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.price__cost b { font-family: var(--f-num); font-weight: 400; font-size: 34px; }
.price__desc { font-size: 11px; }
.prices__cta { margin-top: 60px; text-align: center; }

/* Финальный блок связи */
.contact2 { display: grid; grid-template-columns: 1fr 510px; gap: 70px; align-items: center; }
.contact2__text { font-family: var(--f-head); font-size: 21px; }
.contact2__text p + p { margin-top: 1em; }
.contact2__img { height: 705px; }
.contact2 .btns { margin-top: 40px; }

/* Подвал */
.footer { padding: 65px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer h2 { margin-bottom: 30px; }
.footer__item { display: flex; align-items: center; gap: 26px; font-family: var(--f-head); font-size: 14px; margin-bottom: 18px; }
.footer__icon { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid #191919; display: grid; place-items: center; }
.footer__icon svg { width: 15px; height: 15px; }
.footer__logo { width: 165px; height: 172px; }

/* Галерея */
.page-hero { min-height: 100vh; }
.project { padding: 70px 0; }
.project__head { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 40px; }
.project__head .num { font-size: 90px; min-width: 120px; color: var(--terra); }
.segment .num { color: var(--terra); }
.project__head h2 { font-family: var(--f-head); font-weight: 400; font-size: 23px; padding-top: 30px; max-width: 360px; }
.project__desc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 180px; margin: 30px 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid4 .ph { aspect-ratio: 252 / 352; }
.grid-mix { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.grid-mix .ph { height: 360px; }
.span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span5 { grid-column: span 5; }
.span6 { grid-column: span 6; } .span7 { grid-column: span 7; } .span12 { grid-column: span 12; }
.tall { height: 540px !important; } .xtall { height: 640px !important; } .huge { height: 705px !important; }

/* Партнёрам */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split__img { height: 760px; }
.lead { font-size: 17px; }
.list { list-style: none; display: grid; gap: 14px; margin: 24px 0; }
.list li { position: relative; padding-left: 28px; }
.list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #000; }
.box { background: var(--beige); padding: 22px 34px; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 30px; text-align: center; margin-top: 70px; }
.stages .num { display: block; margin-bottom: 14px; }
.stages h3 { text-transform: uppercase; }
.segments { display: grid; gap: 34px; margin: 40px 0; }
.segment { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.segment h3 { text-transform: uppercase; margin-bottom: 8px; }
.phone-img { height: 700px; max-width: 360px; margin-inline: auto; width: 100%; border-radius: 40px; }
.big { font-family: var(--f-head); font-size: clamp(32px, 6vw, 80px); text-transform: uppercase; line-height: 1.05; overflow-wrap: break-word; hyphens: auto; }
.split > *, .contact > *, .contact2 > *, .about > *, .viz > * { min-width: 0; }

/* Мобильная версия (базовая; доводим на этапе 2) */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .h2 { font-size: 28px; }
  .nav__call { margin-left: auto; }
  .nav__burger { display: block; }
  .nav__links { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    background: rgba(24, 20, 18, .97); color: #fff; font-family: var(--f-head); font-size: 26px; font-weight: 400; letter-spacing: .06em;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .works__track .ph { flex-basis: calc((100% - 22px) / 2); }
  .hero__texts, .about, .contact, .contact2, .viz, .split, .project__desc { grid-template-columns: 1fr; gap: 30px; }
  .hero__texts p:last-child { justify-self: start; }
  .about__img, .contact__img, .contact2__img, .split__img { height: 460px; }
  .works__track .ph { margin-top: 0 !important; }
  .steps__grid, .adv__grid, .prices__grid, .stages { grid-template-columns: 1fr; gap: 40px; }
  .viz__media { height: auto; display: grid; gap: 14px; }
  .viz__ipad, .viz__curtain { position: static; width: 100%; height: 260px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid-mix { grid-template-columns: 1fr 1fr; }
  .grid-mix > * { grid-column: span 1 !important; height: 260px !important; }
  .project__head .num { font-size: 60px; min-width: 70px; }
}
