/* Manrope self-hosted (latin + cyrillic) — надёжнее Google Fonts внутри iframe Тильды */
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-cyr-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-cyr-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-cyr-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-cyr-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #101010;
  --bg-soft: #181818;
  --ink: #ffffff;
  --muted: #8b8a8a;
  --muted-2: #cbcbcb;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #0066ff;
  --accent-soft: rgba(0, 102, 255, 0.21);
  --shell: 430px;
  --pad: 24px;
  --corner: 14px;
  --corner-w: 1px;
}

/* В embed на мобилке — на всю ширину и меньше боковые поля */
html.is-embed-mobile {
  --pad: 12px;
}

html.is-embed-mobile .shell {
  width: 100% !important;
  max-width: none !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

html.is-embed,
html.is-embed body {
  min-height: 0;
  height: auto;
  background: var(--bg);
  /* Скролл страницы — на Тильде (shield). Внутри iframe не скроллим. */
  overflow: hidden !important;
  overscroll-behavior: none;
  width: auto !important;
  max-width: none !important;
}

html.is-embed .page {
  min-height: 0;
  background: var(--bg);
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

html.is-embed .shell {
  min-height: 0 !important;
  height: auto !important;
  width: var(--shell);
  max-width: none;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  min-height: 100vh;
  background: var(--bg);
}

/* Viewfinder / L-corner frames */
.frame {
  position: relative;
  background: var(--bg-soft);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.frame::before {
  background:
    linear-gradient(#fff, #fff) top left / var(--corner) var(--corner-w) no-repeat,
    linear-gradient(#fff, #fff) top left / var(--corner-w) var(--corner) no-repeat,
    linear-gradient(#fff, #fff) top right / var(--corner) var(--corner-w) no-repeat,
    linear-gradient(#fff, #fff) top right / var(--corner-w) var(--corner) no-repeat;
}

.frame::after {
  background:
    linear-gradient(#fff, #fff) bottom left / var(--corner) var(--corner-w) no-repeat,
    linear-gradient(#fff, #fff) bottom left / var(--corner-w) var(--corner) no-repeat,
    linear-gradient(#fff, #fff) bottom right / var(--corner) var(--corner-w) no-repeat,
    linear-gradient(#fff, #fff) bottom right / var(--corner-w) var(--corner) no-repeat;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  padding: 20px var(--pad) 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero__frame {
  width: 100%;
  height: 170px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.hero__brand {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(22px, 5.5vw, 26px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mark {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.mark::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 5px 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 5px 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 5px 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 5px 5px no-repeat;
}

.hero__subtitle {
  margin: 0 0 4px;
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
  font-weight: 400;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn--primary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.block {
  padding: 36px var(--pad) 0;
}

.why__lead {
  margin: -4px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
  font-weight: 400;
}

.why__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.why__list li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 14px 12px 28px;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-2);
  font-weight: 400;
}

.why__list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.block h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: stretch;
}

.about__photo {
  width: 148px;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  align-self: stretch;
}

.about__photo img {
  object-position: center 20%;
}

.about__text {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about__text h2 {
  margin-bottom: 10px;
  font-size: 17px;
}

.about__text .eyebrow {
  margin-bottom: 6px;
}

.about__text ul {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  flex: 1;
}

.about__text li {
  position: relative;
  padding-left: 12px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

.about__text .link {
  margin-top: auto;
}

.about__text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

.link {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.products {
  padding-bottom: 8px;
}

.product {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.product:hover {
  border-color: var(--accent);
  background: rgba(0, 102, 255, 0.06);
}

.product__media {
  width: 84px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.product__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product__sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.product__cta {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.contacts {
  padding-bottom: 8px;
}

.contacts__list {
  display: grid;
  gap: 8px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact--instagram {
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  text-align: center;
}

.contact__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact__note {
  width: 100%;
  max-width: none;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--muted);
}

.contact:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact--instagram:hover .contact__note {
  color: var(--muted);
}

.footer {
  padding: 28px var(--pad) 36px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  font-weight: 400;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 2px;
}

.footer a {
  color: var(--muted-2);
}

.footer a:hover {
  color: var(--accent);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.footer__links a {
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__links a:hover {
  color: var(--accent);
}

/* Плавное появление */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease-in-out var(--reveal-delay, 0ms),
    transform 0.45s ease-in-out var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="in"] {
  opacity: 1;
  transform: none;
}

.btn,
.product,
.contact,
.link {
  transition:
    background 0.3s ease-in-out,
    color 0.3s ease-in-out,
    border-color 0.3s ease-in-out,
    opacity 0.45s ease-in-out var(--reveal-delay, 0ms),
    transform 0.45s ease-in-out var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .product,
  .contact,
  .link,
  [data-reveal] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
