:root {
  --paper: #f7f3ed;
  --milk: #fffdf9;
  --graphite: #161616;
  --muted: #746b62;
  --sand: #d9cab8;
  --line: rgba(22, 22, 22, .11);
  --shadow: 0 28px 90px rgba(22, 22, 22, .13);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--graphite); font-family: var(--font); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 14px 10px 22px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,253,249,.72);
  box-shadow: 0 18px 60px rgba(22,22,22,.08);
  backdrop-filter: blur(24px);
}
.brand { text-decoration: none; font-weight: 780; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.nav { display: flex; gap: clamp(16px, 3vw, 34px); color: rgba(22,22,22,.62); font-size: 14px; }
.nav a, .header-cta, .footer a { text-decoration: none; }
.header-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--graphite); color: white; font-weight: 720; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 124px max(22px, calc((100vw - 1180px) / 2)) 46px; background: #111; }
.hero-media { position: absolute; inset: 0; animation: photoZoom 12s ease-out both; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.42) 36%, rgba(0,0,0,.08) 68%), linear-gradient(0deg, rgba(0,0,0,.42), transparent 56%); }
.hero-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-shine::before { content: ""; position: absolute; top: 0; bottom: 0; left: -25%; width: 22%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-15deg); animation: shine 4.5s ease-in-out infinite .4s; }
.hero-shine::after { content: ""; position: absolute; right: 9%; top: 19%; width: min(360px, 32vw); height: min(270px, 24vw); border: 1px solid rgba(255,255,255,.42); border-radius: 30px; animation: focusPulse 3.6s ease-in-out infinite; }
.hero-content { position: relative; z-index: 3; width: min(690px, 100%); margin: 0 0 54px; color: #fff; animation: copyIn .9s ease-out both; }
.eyebrow { margin: 0 0 16px; color: #9b846d; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow, .final .eyebrow { color: rgba(255,255,255,.78); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; line-height: .98; }
h1 { margin-bottom: 18px; font-size: clamp(46px, 5vw, 72px); font-weight: 760; }
h2 { font-size: clamp(36px, 5.5vw, 76px); font-weight: 740; }
h3 { font-size: 25px; letter-spacing: -.035em; }
p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero p { max-width: 610px; color: rgba(255,255,255,.86); font-size: clamp(19px, 1.55vw, 23px); line-height: 1.42; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border: 0; border-radius: 999px; font: inherit; font-weight: 780; text-decoration: none; cursor: pointer; }
.button.light { margin-top: 24px; background: #fff; color: var(--graphite); }
.button.dark { background: var(--graphite); color: #fff; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(680px, 100%); margin-top: 24px; }
.hero-proof span { min-height: 92px; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.35; backdrop-filter: blur(16px); }
.hero-proof b { display: block; margin-bottom: 7px; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.hero-note { position: absolute; left: max(22px, calc((100vw - 1180px) / 2)); bottom: 38px; z-index: 4; width: min(360px, calc(100% - 44px)); padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.42); color: #fff; animation: copyIn 1s ease-out both .18s; }
.hero-note span { display: block; margin-bottom: 7px; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-note strong { display: block; font-size: 20px; line-height: 1.25; letter-spacing: -.035em; }
.hero-tags { position: absolute; right: max(22px, calc((100vw - 1180px) / 2)); bottom: 38px; z-index: 4; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font-size: 13px; font-weight: 720; backdrop-filter: blur(14px); animation: badgeFloat 4s ease-in-out infinite; }
.hero-tags span:nth-child(2) { animation-delay: .4s; }
.hero-tags span:nth-child(3) { animation-delay: .8s; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(80px, 10vw, 140px) 0; }
.section-head { width: min(880px, 100%); margin-bottom: 44px; }
.identity { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(28px, 6vw, 76px); align-items: center; }
.identity-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.identity-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }

.card-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card, .service, .compare-card, .contact-form, details { border: 1px solid rgba(255,255,255,.78); border-radius: var(--radius); background: rgba(255,253,249,.72); box-shadow: 0 18px 62px rgba(22,22,22,.07); }
.card { min-height: 210px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.card span { color: #a58e75; font-size: 13px; font-weight: 800; }
.card h3 { margin: 0; }
.service { min-height: 205px; padding: 26px; }
.service p { margin-bottom: 0; font-size: 15px; }

.process { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(34px, 6vw, 78px); }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline span { color: #a58e75; font-size: 44px; line-height: 1; font-weight: 760; }
.timeline img { width: min(520px, 100%); aspect-ratio: 16 / 10; margin-top: 18px; border-radius: 22px; object-fit: cover; box-shadow: 0 18px 52px rgba(22,22,22,.12); }

.compare { padding: clamp(80px, 10vw, 140px) max(20px, calc((100vw - 1180px) / 2)); background: var(--graphite); color: #fff; }
.compare h2, .compare h3 { color: #fff; }
.compare p { color: rgba(255,255,255,.72); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-card { padding: clamp(26px, 4vw, 46px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.compare-card.bright { background: linear-gradient(135deg, #f7f3ed, #d9cab8); color: var(--graphite); }
.compare-card.bright h3, .compare-card.bright p { color: var(--graphite); }

.kazan { position: relative; min-height: 860px; overflow: hidden; display: grid; align-items: end; padding: 64px max(20px, calc((100vw - 1180px) / 2)); }
.kazan > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kazan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(247,243,237,.96), rgba(247,243,237,.2)); }
.kazan-card { position: relative; z-index: 2; width: min(720px, 100%); padding: clamp(26px, 4vw, 48px); border-radius: var(--radius); background: rgba(255,253,249,.74); box-shadow: var(--shadow); backdrop-filter: blur(16px); }

.faq { display: grid; gap: 12px; }
details { padding: 24px 26px; }
summary { cursor: pointer; font-size: clamp(21px, 2.2vw, 30px); font-weight: 760; letter-spacing: -.035em; }
details p { margin: 14px 0 0; }

.contact { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(80px, 10vw, 140px) 0; display: grid; grid-template-columns: .85fr 1fr; gap: clamp(30px, 6vw, 76px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 4vw, 40px); }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 760; }
.full { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--graphite); font: inherit; font-size: 16px; padding: 15px 16px; outline: none; }
.consent { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.final { position: relative; width: min(1420px, calc(100% - 40px)); min-height: 760px; margin: 0 auto 28px; overflow: hidden; display: grid; align-items: end; padding: 42px; border-radius: 34px; background: #111; }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.1)); }
.final-content { position: relative; z-index: 2; width: min(720px, 100%); color: #fff; }
.final p { color: rgba(255,255,255,.8); }
.final h2 { color: #fff; }

.footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 42px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; }
.legal-page { background: var(--milk); }
.legal { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 76px; }
.legal h1 { color: var(--graphite); font-size: clamp(40px, 7vw, 76px); }
.legal h2 { margin-top: 38px; font-size: clamp(26px, 4vw, 38px); }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.75; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes shine { 0%, 45% { transform: translateX(0) skewX(-15deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: translateX(750%) skewX(-15deg); opacity: 0; } }
@keyframes focusPulse { 0% { opacity: 0; transform: scale(.96); } 40% { opacity: .55; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes copyIn { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes photoZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .hero { min-height: 840px; }
  .hero-content { margin-bottom: 138px; }
  .hero-proof { grid-template-columns: 1fr; width: min(360px, 100%); }
  .hero-proof span { min-height: auto; }
  .hero-note { display: none; }
  .identity, .process, .contact { grid-template-columns: 1fr; }
  .card-grid, .service-grid, .compare-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { top: 10px; width: calc(100% - 20px); min-height: 58px; padding: 8px 10px 8px 16px; }
  .brand small { display: none; }
  .header-cta { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .hero { min-height: 760px; padding: 100px 16px 26px; }
  .hero-media img { object-position: 48% center; }
  .hero-content { margin-bottom: 118px; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  h2 { font-size: clamp(34px, 11vw, 50px); }
  .hero p { font-size: 19px; }
  .hero-proof { display: none; }
  .hero-tags { left: 16px; right: 16px; bottom: 22px; }
  .section, .contact { width: calc(100% - 28px); }
  .card-grid, .service-grid, .compare-grid, .contact-form { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 14px; }
  .timeline span { font-size: 32px; }
  .kazan { min-height: 780px; padding: 42px 14px; }
  .final { width: calc(100% - 20px); min-height: 680px; padding: 22px; border-radius: 24px; }
}
