:root {
  --bg: #050505;
  --bg-soft: #101010;
  --card: #151515;
  --line: rgba(255,255,255,.12);
  --text: #f4f4f0;
  --muted: rgba(244,244,240,.66);
  --accent: #ffffff;
  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --radius: 28px;
  --container: min(1160px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 80% 0%, #1a1a1a 0, transparent 28rem), var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 50;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(18px);
}
.brand { display: flex; flex-direction: column; line-height: .95; letter-spacing: -.04em; }
.brand__name { font-weight: 900; font-size: 22px; }
.brand__sub { margin-top: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav__cta {
  padding: 12px 18px;
  border-radius: 999px;
  color: #050505 !important;
  background: var(--accent);
  font-weight: 800;
}
.menu-button { display: none; }

.section { width: var(--container); margin: 0 auto; padding: 96px 0; }
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
  padding-top: 140px;
}
.eyebrow { margin: 0 0 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(64px, 10.5vw, 140px); letter-spacing: -.045em; line-height: .86; margin-bottom: 28px; }
h2 { font-size: clamp(36px, 6vw, 84px); letter-spacing: -.07em; line-height: .9; margin-bottom: 0; }
h3 { font-size: 24px; letter-spacing: -.04em; margin-bottom: 10px; }
.hero__lead { max-width: 620px; font-size: clamp(22px, 3vw, 38px); line-height: 1.08; color: var(--muted); letter-spacing: -.04em; }
.hero__actions, .hero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta a { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.hero__mark { justify-self: center; width: min(430px, 80vw); opacity: .18; filter: invert(1); }
.hero__mark img { animation: float 7s ease-in-out infinite; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: #050505; border-color: var(--accent); }
.button--ghost { color: var(--text); background: rgba(255,255,255,.04); }
.button--small { min-height: 44px; font-size: 14px; padding-inline: 18px; }

.section__head { margin-bottom: 34px; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section__note { max-width: 350px; color: var(--muted); line-height: 1.45; }
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 16px;
}
.about__text, .feature-card, .master-card, .gallery__item, .certificate, .contact-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__text { padding: 28px; font-size: 26px; line-height: 1.12; letter-spacing: -.04em; color: var(--text); }
.feature-card { padding: 24px; }
.feature-card span { color: var(--muted); font-size: 12px; font-weight: 900; }
.feature-card p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }

.masters__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.master-card { overflow: hidden; display: grid; grid-template-columns: 190px 1fr; }
.master-card__photo {
  min-height: 330px;
  display: grid;
  place-items: center;
  background: #ededdf;
  color: #050505;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -.08em;
}
.master-card__body { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.master-card__body p { color: var(--muted); line-height: 1.5; }
.master-card--empty .master-card__photo { background: #171717; color: var(--muted); border-right: 1px solid var(--line); }
.work-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: auto 0 20px; }
.work-strip span { min-height: 72px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); font-size: 13px; }

.gallery__grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 16px; }
.gallery__item { min-height: 360px; display: grid; place-items: end start; padding: 22px; color: var(--muted); background: linear-gradient(135deg, #151515, #050505); }
.gallery__item:first-child { min-height: 460px; }

.certificate { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; }
.certificate p { max-width: 570px; color: var(--muted); font-size: 20px; line-height: 1.45; margin-bottom: 0; }
.contacts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card { min-height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.contact-card span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.contact-card strong { font-size: 20px; letter-spacing: -.04em; }

.footer { width: var(--container); margin: 0 auto; padding: 32px 0 96px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); }
.floating-cta { display: none; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

@media (max-width: 920px) {
  .menu-button { display: grid; gap: 6px; width: 42px; height: 42px; place-content: center; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
  .menu-button span { display: block; width: 18px; height: 2px; background: var(--text); }
  .nav { position: absolute; left: 0; right: 0; top: calc(100% + 10px); padding: 18px; border: 1px solid var(--line); border-radius: 28px; background: rgba(5,5,5,.96); flex-direction: column; align-items: stretch; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .18s ease; }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 10px; }
  .nav__cta { text-align: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 160px; }
  .hero__mark { order: -1; width: 210px; justify-self: start; opacity: .13; }
  .about__grid, .masters__grid, .gallery__grid, .contacts__grid { grid-template-columns: 1fr; }
  .section__head--row, .certificate, .footer { flex-direction: column; align-items: flex-start; }
  .master-card { grid-template-columns: 1fr; }
  .master-card__photo { min-height: 260px; }
  .floating-cta {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    height: 58px;
    border-radius: 999px;
    background: var(--accent);
    color: #050505;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
  }
  .footer { padding-bottom: 110px; }
}

.footer { gap: 28px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; max-width: 620px; }
.footer__links a { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.footer__links a:hover { color: var(--text); }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5,5,5,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { display: flex; flex-direction: column; gap: 6px; color: var(--muted); line-height: 1.45; }
.cookie-banner__text strong { color: var(--text); }
.cookie-banner__text a { color: var(--text); border-bottom: 1px solid var(--line); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-banner__button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.cookie-banner__button--ghost { background: transparent; color: var(--text); border-color: var(--line); }

.legal-page { min-height: 100svh; padding-top: 120px; }
.legal-hero { width: var(--container); margin: 0 auto; padding: 56px 0 24px; }
.legal-hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .96; letter-spacing: -.035em; margin-bottom: 18px; }
.legal-hero p { max-width: 760px; color: var(--muted); font-size: 20px; line-height: 1.45; }
.legal-card {
  width: var(--container);
  margin: 0 auto 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}
.legal-card h2 { font-size: clamp(28px, 4vw, 46px); margin: 34px 0 16px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.65; }
.legal-card a { color: var(--text); border-bottom: 1px solid var(--line); }
.legal-list { padding-left: 20px; }
.legal-note { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--text) !important; }

@media (max-width: 920px) {
  h1 {
  font-size: clamp(52px, 17vw, 88px);
  letter-spacing: -.035em;
  line-height: .9;
}
h2 {
  letter-spacing: -.03em;
  line-height: 1;}
  .footer__links { justify-content: flex-start; flex-direction: column; }
  .cookie-banner { bottom: 86px; flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__button { flex: 1; }
}
