/* Заглушка liagureeva.ru — палитра из черновика дизайнера на Тильде: пудра #E8D9D2, бордо #641C34.
   Шрифт — Montserrat (SIL OFL): ближе всех свободных к Century Gothic из черновика по ширине и лёгкости
   (тот — версия из MS Office, раздавать её на сайте нельзя). 300 — крупные заголовки, 400 — текст. */
@font-face {
  font-family: "LG Sans";
  src: url("fonts/montserrat-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LG Sans";
  src: url("fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --powder: #e8d9d2;
  --ink: #161616;
  --muted: #5b4d49;
  --wine: #641c34;
  --wine-soft: #8f3a57;
  --line: rgba(100, 28, 52, 0.26);
  --sky: #c9dbe8;
  --font: "LG Sans", Montserrat, "Century Gothic", Futura, "Trebuchet MS", sans-serif;
  --pad-x: clamp(28px, 4.6vw, 76px);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--powder);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--powder);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.nobr {
  white-space: nowrap;
}

/* ——— раскладка: фото слева (модель смотрит в сторону текста), текст справа ——— */
.stub {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "photo brand"
    "photo body";
  min-height: 100vh;
  min-height: 100dvh;
}

.stub__photo {
  grid-area: photo;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--sky);
}

.stub__photo picture,
.stub__photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.stub__photo img {
  object-fit: cover;
  object-position: 10% 32%;
}

.stub__brand {
  grid-area: brand;
  padding: clamp(36px, 5.2vh, 64px) var(--pad-x) 0;
}

/* ширина задаётся ссылке, а не самому знаку: процент внутри inline-block сворачивается в ноль */
.logo-link {
  display: block;
  width: min(100%, 380px);
}

/* логотип клиента маской на перелив «чернила ↔ бордо» — приём «как у нас» (Ортоград, Туманко), 7 с */
.logo {
  display: block;
  width: 100%;
  aspect-ratio: 188 / 45;
  background: linear-gradient(105deg, var(--ink) 0%, var(--ink) 18%, var(--wine) 50%, var(--ink) 82%, var(--ink) 100%);
  background-size: 220% 100%;
  -webkit-mask: url("img/logo.svg") center / contain no-repeat;
  mask: url("img/logo.svg") center / contain no-repeat;
  animation: brand-flow 7s ease-in-out infinite;
}

@keyframes brand-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.stub__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vh, 52px);
  padding: clamp(40px, 7vh, 88px) var(--pad-x) 26px;
}

/* ——— первый экран ——— */
.eyebrow {
  margin: 0 0 20px;
  color: var(--wine);
  font-size: 14px;
  letter-spacing: 0.3em;
}

h1 {
  margin: 0;
  max-width: 11em;
  color: var(--wine);
  font-size: clamp(40px, 4.3vw, 64px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.lead {
  margin: 24px 0 0;
  max-width: 31em;
  font-size: 18px;
  line-height: 1.6;
}

/* ——— шляпы из «Новинок» черновика ——— */
.teaser__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teaser__list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 257 / 342;
  object-fit: cover;
  background: #cfcfcf;
}

/* ——— контакты ——— */
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.contact--wide {
  grid-column: 1 / -1;
}

.contact h2 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.contact p {
  margin: 0;
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.phone {
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.phone:hover {
  color: var(--wine);
}

.text-link {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.text-link:hover {
  color: var(--wine);
  text-decoration-color: currentColor;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.socials a:hover {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.socials__star {
  position: absolute;
  top: 2px;
  right: 5px;
  font-size: 12px;
  line-height: 1;
}

/* ——— подвал ——— */
.foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.foot p {
  margin: 0;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}

/* подпись «Стратега» — внизу подвала, перелив в тонах сайта клиента (бордо), 5 с */
.by {
  background: linear-gradient(105deg, var(--wine) 0%, var(--wine-soft) 50%, var(--wine) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  animation: brand-flow 5s ease-in-out infinite;
}

.by:hover {
  text-decoration: underline;
  text-decoration-color: var(--wine);
}

/* ——— планшет и телефон: лого → фото → текст ——— */
@media (max-width: 1023.98px) {
  .stub {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "brand"
      "photo"
      "body";
  }

  .stub__brand {
    padding: 22px var(--pad-x) 20px;
  }

  .logo-link {
    width: min(100%, 300px);
    margin: 0 auto;
  }

  /* фото ниже ~58 % экрана: заголовок «скоро открытие» должен попадать в первый экран телефона */
  .stub__photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 58vh;
    max-height: 58svh;
  }

  .stub__photo img {
    object-position: 50% 22%;
  }

  .stub__body {
    padding-top: 30px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .teaser__list {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .lead {
    font-size: 17px;
  }

  .contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .teaser__list {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .by {
    animation: none;
  }
}

@media (forced-colors: active) {
  .logo {
    background: CanvasText;
  }

  .by {
    color: LinkText;
    -webkit-text-fill-color: LinkText;
    background: none;
  }
}
