/* Base */
:root {
  --bg: #FFF8F4;
  --surface: #FFFFFF;
  --text: #2B1D14;
  --muted: #6B5545;
  --accent: #B53A0B;
  --accent-dark: #8F2E09;
  --accent-text: #FFFFFF;
  --plate-bg: #2B1D14;
  --plate-text: #FFE8D6;
  --line: #E5D6C9;
  --tint: #F8EDE3;
  --font: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 128px);
  --radius: 0;
  --shadow: 0 1px 2px rgb(43 29 20 / .06), 0 12px 32px rgb(43 29 20 / .08);
}

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

html { -webkit-text-size-adjust: 100%; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 8% -6%, rgb(181 58 11 / .07), transparent 62%),
    radial-gradient(760px 380px at 96% 12%, rgb(43 29 20 / .06), transparent 60%),
    radial-gradient(1100px 520px at 50% 108%, rgb(181 58 11 / .05), transparent 65%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }

p { max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Layout */
.l-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.l-block { padding-top: var(--sec); padding-bottom: var(--sec); position: relative; }
@media (max-width: 639px) {
  .l-block { padding-top: 56px; }
}
.l-block.has-tint { background-color: var(--tint); margin-top: 28px; }
.l-block.has-tint::before,
.l-block.has-tint::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  background-color: inherit;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.l-block.has-tint::before { top: -27px; transform: scaleY(-1); }
.l-block.has-tint::after { bottom: -27px; }

.l-prose { max-width: 760px; }
.l-prose h2, .l-prose h3 { margin: 2em 0 0.5em; }
.l-prose h2:first-child, .l-prose h3:first-child { margin-top: 0; }
.l-prose p, .l-prose ul, .l-prose ol { margin: 0 0 1em; }
.l-prose ul, .l-prose ol { padding-left: 1.4em; }
.l-prose li { margin-bottom: 0.4em; }
.l-prose a { color: var(--accent); }

.l-privacy-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5em;
}

.l-toc {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  border: 1px solid var(--line);
  background-color: var(--surface);
}
.l-toc li { border-bottom: 1px solid var(--line); }
.l-toc li:last-child { border-bottom: 0; }
.l-toc a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text);
}
.l-toc a:hover { background-color: var(--tint); color: var(--accent); }

/* Utilities */
.u-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--plate-bg);
  color: var(--plate-text);
  padding: 12px 20px;
  z-index: 100;
}
.u-skip:focus { left: 0; color: var(--plate-text); }

.u-title-lg { margin: 0 0 16px; }
.u-intro {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
}
.u-lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--muted); }

.u-accent {
  display: inline-block;
  font-size: clamp(2.6rem, 5.2vw + 1rem, 6.4rem);
  color: var(--accent);
  line-height: 1;
}

/* Header */
.c-topbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.c-topbar-row { padding: 12px 0; }
.c-topbar-row:first-child { border-bottom: 1px solid var(--line); }
.c-topbar-contacts {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
}
@media (max-width: 767px) {
  .c-topbar-contacts { text-align: center; }
}
.c-topbar-contacts a { color: var(--muted); text-decoration: none; }
.c-topbar-contacts a:hover { color: var(--accent); }

.c-topbar-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.c-masthead {
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.c-masthead:hover { color: var(--accent); }

/* Menu */
.l-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 14px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
}
.l-menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text);
}
#menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.l-menu-item a {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.l-menu-item a:hover {
  background-color: var(--tint);
  color: var(--accent);
}
.l-menu-item a[aria-current="page"],
.l-menu-item a.is-active {
  background-color: var(--plate-bg);
  border-color: var(--plate-bg);
  color: var(--plate-text);
}

/* Announcement plate */
.c-plate {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  padding: 16px 56px 16px 24px;
  max-width: 720px;
  box-shadow: var(--shadow);
}
.c-plate-text { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.c-plate-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: 0;
  color: var(--plate-text);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 10px;
}
.c-plate-close:hover { color: #FFFFFF; }

main .c-plate.l-contact-strip {
  position: static;
  max-width: none;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: none;
}
main .c-plate .u-title-lg { color: var(--plate-text); }
main .c-plate p { color: var(--plate-text); }
main .c-plate a { color: #FFC9A6; }

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 32px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  background-color: transparent;
  border: 2px solid var(--text);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.c-btn:hover {
  background-color: var(--text);
  color: var(--plate-text);
}
.c-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.c-btn:active {
  background-color: var(--plate-bg);
  border-color: var(--plate-bg);
  color: var(--plate-text);
  transform: translateY(-1px);
}
.l-btn-dark {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.l-btn-dark:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-text); }
.l-btn-dark:active { background-color: var(--plate-bg); border-color: var(--plate-bg); }

/* Hero */
.l-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: center;
  padding-bottom: 64px;
}
.c-headline { margin: 0 0 20px; }
.c-headline-row { display: block; }
.l-hero-copy { grid-column: 1 / 7; }
.l-hero-copy .c-btn { margin-top: 12px; margin-bottom: 32px; }
.l-hero-copy .c-plate {
  position: static;
  margin: 24px 0 0;
  max-width: 640px;
  padding: 28px 32px;
  box-shadow: none;
}
.l-hero-media {
  grid-column: 8 / 13;
  align-self: center;
}
.l-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
@media (max-width: 767px) {
  .l-hero { grid-template-columns: 1fr; gap: 24px; }
  .l-hero-copy,
  .l-hero-media { grid-column: 1 / -1; }
  .l-hero-copy .c-plate { margin-bottom: 32px; }
  .l-hero-copy .c-btn { width: 100%; }
}

/* Frame gallery */
.l-frames {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}
.l-frame {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
}
.l-frame img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.l-frame-wide img { aspect-ratio: 16 / 9; }
.l-frame-square img { aspect-ratio: 1 / 1; }
.l-frame figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 720px;
  line-height: 1.5;
}

/* Magazine block */
.l-magazine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.l-magazine-media { margin-bottom: 24px; }
.l-magazine-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}
.l-magazine-media img[hidden] { display: none; }

/* Cards */
.l-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.c-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}
.c-card:hover, .c-card:focus-within { border-color: var(--accent); }
.c-card h3 { margin: 16px 0 8px; }
.c-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.c-card-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-text);
  background-color: var(--accent);
}

/* Form */
.l-form-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.c-form {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}
.l-form-row { display: grid; gap: 6px; }
.l-form-label { font-weight: 600; font-size: 0.95rem; }
.l-form-input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  color: var(--text);
  width: 100%;
}
.l-form-input::placeholder { color: var(--muted); opacity: 1; }
.l-form-area { resize: vertical; min-height: 120px; }
.l-form-input.is-invalid { border-color: var(--accent); background-color: #FDEEE6; }
.l-form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--muted);
}
.l-form-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.l-form-check a { color: var(--accent); }
.l-form-note { font-size: 0.875rem; color: var(--muted); margin: 0; }
.c-form .l-form-send { justify-self: start; }
.c-form.is-waiting .l-form-send {
  opacity: 0.6;
  pointer-events: none;
}

/* FAQ */
.l-faq-block { max-width: 860px; }
.c-faq { display: grid; gap: 12px; }
.c-faq details {
  background-color: var(--surface);
  border: 1px solid var(--line);
}
.c-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
}
.c-faq details[open] summary::after { content: "−"; }
.c-faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}
.c-faq details[open] { border-color: var(--accent); }

/* Contact strip */
.l-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
main .c-plate .c-btn {
  background-color: transparent;
  border-color: var(--plate-text);
  color: var(--plate-text);
}
main .c-plate .c-btn:hover { background-color: var(--plate-text); color: var(--plate-bg); }
main .c-plate .c-btn:active { background-color: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* Steps (complaints page) */
.l-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.l-steps li {
  counter-increment: step;
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px 22px 76px;
  position: relative;
}
.l-steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

/* Inner page header */
.l-page-head { padding-bottom: 0; }
.l-page-head h1 { margin: 0 0 16px; }
.l-page-head .u-intro { margin-bottom: 0; }

/* Contact info list */
.l-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.l-contact-list li {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 20px;
}
.l-contact-list span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Thanks / 404 */
.l-confirm {
  text-align: center;
  max-width: 640px;
}
.l-confirm .c-btn { margin: 8px 8px 8px 0; }
.l-confirm-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Floating call button */
.c-callfab {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 30;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--accent-text);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.c-callfab:hover { background-color: var(--accent-dark); transform: translateY(-2px); }
.c-callfab:active { background-color: var(--plate-bg); transform: none; }

/* Footer */
.c-colophon {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  margin-top: var(--sec);
}
.c-colophon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.c-colophon-title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}
.c-colophon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.c-colophon a {
  color: #FFC9A6;
  text-decoration: none;
}
.c-colophon a:hover { color: #FFFFFF; text-decoration: underline; }
.c-colophon address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.6;
}
.c-colophon address p { margin: 0 0 10px; }
.c-colophon ul li span {
  display: inline-block;
  min-width: 64px;
  color: #E8C9B4;
}
.c-colophon-copy {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 232 214 / .2);
  font-size: 0.875rem;
  color: #E8C9B4;
}

/* Reveal */
html.has-js .c-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.has-js .c-reveal.is-shown {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (max-width: 479px) {
  .c-headline-row { font-size: 0.9em; }
  .l-contact-actions .c-btn { width: 100%; }
}

@media (max-width: 767px) {
  .l-menu-toggle { display: inline-flex; }
  #menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px var(--pad) 20px;
    gap: 10px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    box-shadow: var(--shadow);
  }
  .c-menu.has-open #menu-list {
    display: flex;
    transform: none;
    opacity: 1;
    visibility: visible;
    animation: menu-drop 0.25s ease;
  }
  #menu-list a { display: block; }
  .c-topbar { position: relative; }
  .c-menu { position: static; }
}

@media (min-width: 640px) {
  .l-cards { grid-template-columns: repeat(2, 1fr); }
  .l-frames { grid-template-columns: repeat(2, 1fr); }
  .l-contact-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .l-magazine { grid-template-columns: repeat(12, 1fr); gap: 64px; }
  .l-magazine-media { order: -1; grid-column: 1 / 6; margin-bottom: 0; }
  .l-magazine-copy { grid-column: 7 / 13; }
  .l-form-block { grid-template-columns: 1fr 1.1fr; }
  .c-colophon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .l-cards { grid-template-columns: repeat(4, 1fr); }
  .l-frames { grid-template-columns: repeat(2, 1fr); }
  .l-frame-wide { grid-column: span 2; }
  .c-colophon-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .l-wrap { padding-left: 40px; padding-right: 40px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.has-js .c-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 639px) {
  .u-title-lg { font-size: clamp(28px, 7vw, 44px); line-height: 1.15; }
}
.l-prose .c-plate:not(.l-contact-strip) {
  position: static;
  margin: 24px 0 0;
  max-width: 640px;
  padding: 28px 32px;
  box-shadow: none;
}

/* Menu animation */
@keyframes menu-drop {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .c-menu.has-open .c-menu-list { animation: none; }
}

.l-hero-copy,
.l-hero-media { min-width: 0; }
