/* ============================================================
   Умный квадрат — сайт-визитка
   Редизайн: тёмный премиум (референс: интерьерная студия)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #101010;
  --bg-2: #161616;
  --ink: #eceae6;
  --muted: #a29c94;
  --line: rgba(236, 234, 230, .16);
  --accent: #b9975f;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", Georgia, ui-serif, serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container--narrow { max-width: 800px; }

.center { text-align: center; }

/* ---------- Small-uppercase text ---------- */
.site-head__nav a,
.menu-btn,
.btn-outline,
.contact__label,
.site-head__social a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

/* ---------- Buttons (outlined) ---------- */
.btn-outline {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-outline:hover { border-color: var(--ink); background: rgba(236, 234, 230, .05); }
.btn-outline--wide { width: 100%; text-align: center; margin-top: 8px; }

/* ---------- Шапка ---------- */
.site-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(20px, 4vw, 48px);
  color: var(--ink);
}
.site-head__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
}
.site-head__nav a,
.menu-btn {
  color: var(--ink);
  background: none;
  border: none;
  font-family: var(--sans);
  cursor: pointer;
  opacity: .85;
  transition: opacity .15s ease;
}
.site-head__nav a:hover,
.menu-btn:hover { opacity: 1; }
.site-head__nav a:not(:first-child),
.site-head__nav .menu-btn { margin-left: 0; }
.site-head__social { display: flex; align-items: center; gap: 16px; }
.site-head__social a { opacity: .8; transition: opacity .15s ease; padding: 4px; }
.site-head__social a:hover { opacity: 1; }

/* ---------- Полноэкранное меню ---------- */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 26px clamp(20px, 4vw, 48px) 36px;
  background: rgba(16, 16, 16, .98);
  color: var(--ink);
  overflow-y: auto;
}
.overlay-menu[hidden] { display: none; }
.overlay-menu__bar { display: flex; justify-content: space-between; align-items: center; }
.overlay-menu__brand {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.overlay-menu__nav {
  margin: auto 0;
  display: grid;
  gap: 6px;
}
.overlay-menu__nav a {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.25;
  color: var(--ink);
  width: fit-content;
  transition: color .15s ease;
}
.overlay-menu__nav a:hover { color: var(--accent); }
.overlay-menu__contact { font-size: 16px; text-align: right; opacity: .8; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Слои: hero.jpg (пользовательское фото) → hero.png (сгенерированный щит) →
     hero.svg (его векторный оригинал) → градиент-страховка */
  background-image:
    url("../../images/hero.jpg"),
    url("../../images/hero.png"),
    url("../../images/hero.svg"),
    linear-gradient(160deg, #2a2a2c 0%, #141414 70%, #0e0e0e 100%);
  background-size: cover;
  background-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(14, 14, 14, .78) 0%, rgba(14, 14, 14, .35) 40%, rgba(14, 14, 14, .08) 70%, rgba(14, 14, 14, .3) 100%),
    linear-gradient(to top, #101010 2%, rgba(16, 16, 16, .28) 30%, rgba(16, 16, 16, 0) 60%),
    linear-gradient(to bottom, rgba(16, 16, 16, .3) 0%, rgba(16, 16, 16, 0) 24%);
}
.hero__content {
  padding: 120px clamp(20px, 4vw, 48px) 80px;
  max-width: 660px;
  width: 100%;
}
.hero__title { display: grid; gap: 6px; margin-bottom: 26px; }
.hero__serif {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 110px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__caps {
  font-size: clamp(13px, 1.8vw, 17px);
  text-transform: uppercase;
  letter-spacing: .38em;
  font-weight: 500;
}
.hero__lead {
  max-width: 420px;
  color: var(--muted);
  margin-bottom: 34px;
}
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(236, 234, 230, .7));
  animation: scrollhint 2.2s infinite;
}
@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
}

/* ---------- Секции ---------- */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  background: var(--bg);
}
.section + .section { border-top: 1px solid rgba(236, 234, 230, .06); }
.section__title {
  font-family: var(--sans);
  font-size: clamp(26px, 3.6vw, 40px);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.section__sub { color: var(--muted); max-width: 560px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__sub.center { margin-left: auto; margin-right: auto; }

/* ---------- Плейсхолдеры фото ---------- */
.placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 30% 20%, #242527 0%, #17181a 55%, #101113 100%);
  color: rgba(236, 234, 230, .45);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ph-inner { display: grid; justify-items: center; gap: 12px; }

/* ---------- Студия / о нас ---------- */
.about {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 22px;
}
.about__text p { color: var(--muted); max-width: 480px; }
.about__text p + p { margin-top: 14px; }
.about__text .btn-outline { margin-top: 30px; }
.about__collage {
  position: relative;
  min-height: 420px;
}
.about__photo {
  position: absolute;
  border: 1px solid var(--line);
}
.about__photo--main {
  inset: 0 18% 12% 0;
}
.about__photo--offset {
  right: 0;
  bottom: 0;
  width: 46%;
  min-height: 46%;
  z-index: 1;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about__collage { min-height: 520px; }
}

/* ---------- Работы / кейсы ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.case {
  display: block;
  background: var(--bg-2);
  border: 1px solid rgba(236, 234, 230, .08);
  transition: border-color .2s ease, transform .2s ease;
}
.case:hover { border-color: var(--line); transform: translateY(-4px); }
.case__photo {
  aspect-ratio: 4 / 5;
}
.case__meta {
  position: relative;
  padding: 20px 22px 24px;
}
.case__meta h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}
.case__meta p { color: var(--muted); font-size: 13.5px; max-width: 24ch; }
.case__arrow {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: 20px;
  color: var(--accent);
  transition: transform .2s ease;
}
.case:hover .case__arrow { transform: translateX(6px); }

/* ---------- Процесс: строки с номерами ---------- */
.rows__item {
  display: grid;
  grid-template-columns: clamp(48px, 8vw, 90px) 1fr;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.rows__item:last-child { border-bottom: 1px solid var(--line); }
.rows__num {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--accent);
}
.rows__body h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin-bottom: 8px;
}
.rows__body p { color: var(--muted); max-width: 640px; }

/* ---------- Цены ---------- */
.prices {
  display: grid;
  gap: clamp(28px, 3vw, 44px);
}
.price {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.price__name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 4px;
}
.price__scope { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.price__value {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  color: var(--ink);
}
.price__unit { color: var(--muted); font-size: 13px; margin: 6px 0 16px; }
.price__note { color: var(--muted); font-size: 14px; max-width: 420px; margin-bottom: 18px; }
.price__link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
}
.price__link:hover { color: var(--ink); }
@media (min-width: 900px) {
  .prices { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Отзывы ---------- */
.quotes {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}
.quote footer {
  margin-top: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- FAQ ---------- */
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-size: clamp(16px, 2vw, 19px);
  position: relative;
  padding-right: 40px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding-bottom: 24px; color: var(--muted); max-width: 640px; }

/* ---------- Контакты ---------- */
.contacts {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Фон-плоскость под контакты: подложите сюда фото объекта при желании
   (background-image: url("../../images/object.jpg")) */
.contacts__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 78% 40%, #232223 0%, #141414 60%, #0f0f0f 100%);
}
.contacts__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(16, 16, 16, .85) 0%, rgba(16, 16, 16, .45) 55%, rgba(16, 16, 16, .75) 100%);
}
.contact {
  display: grid;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 50px);
  margin-bottom: 16px;
}
.contact__lead { color: var(--muted); max-width: 420px; margin-bottom: 30px; }
.contact__row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__label {
  color: var(--muted);
  letter-spacing: .14em;
}
.contact__row a, .contact__row span:last-child { font-size: 16px; }
.contact__links { display: inline-flex; gap: 22px; }
.contact__links a { color: var(--accent); }
.contact__links a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; }
}

.contact__form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 26px;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  outline: none;
  resize: vertical;
  transition: border-color .2s ease;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(162, 156, 148, .5); }
.contact__form input:focus,
.contact__form textarea:focus { border-bottom-color: var(--accent); }
.contact__form input[type="tel"],
.contact__form input[type="text"] { font-size: 17px; }
.form__note { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 420px; }

/* ---------- Футер ---------- */
.footer {
  border-top: 1px solid rgba(236, 234, 230, .08);
  padding: 34px 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.footer__brand {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink);
}
.footer__nav { display: flex; gap: 24px; justify-content: center; text-transform: uppercase; }
.footer__nav a:hover { color: var(--ink); }
.footer__copy { opacity: .7; }
@media (min-width: 760px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}