/* Base */
:root {
  --bg: #F6F4FA;
  --surface: #FFFFFF;
  --text: #211B2E;
  --muted: #5B536B;
  --accent: #6234B5;
  --accent-text: #FFFFFF;
  --plate-bg: #211B2E;
  --plate-text: #F6F4FA;
  --line: #DCD6E8;
  --soft: #ECE7F5;
  --shadow: 0 1px 2px rgb(33 27 46 / .06), 0 12px 32px rgb(33 27 46 / .08);
  --shadow-glow: 0 4px 10px rgb(98 52 181 / .14), 0 16px 40px rgb(98 52 181 / .16);
  --radius-card: 18px;
  --radius-btn: 10px;
  --font-head: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  min-height: 100%;
}

/* Diagonal background stripes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    115deg,
    var(--bg) 0,
    var(--bg) 220px,
    #EFEBF7 220px,
    #EFEBF7 440px
  );
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem);
  margin: 0 0 12px;
}

h3 { font-size: clamp(1.2rem, 1vw + 0.7rem, 1.5rem); margin: 0 0 8px; }

p { margin: 0 0 16px; max-width: 68ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #4A2589; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-btn) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.block { padding-block: clamp(64px, 9vw, 128px); }

.lead {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1vw + 0.8rem, 1.5rem);
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Reveal sections */
.block--enter { transition: transform 0.6s ease, opacity 0.6s ease; }
html.is-live .block--enter:not(.is-shown) {
  opacity: 0.01;
  transform: translateY(28px);
}

/* Header */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar__contacts {
  margin: 0;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}
.topbar__contacts a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topbar__contacts a:hover { color: var(--accent); }

.topbar__main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
  position: relative;
}

.brandmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.5vw + 0.7rem, 1.7rem);
  color: var(--accent);
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
}

.menu__trigger { display: none; }

.menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__item {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.menu__item:hover { border-color: var(--accent); color: var(--accent); }
.menu__item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.menu__item[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* Floating call button */
.topbar__call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  box-shadow: var(--shadow);
}

/* Buttons */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, #7343C6 0%, var(--accent) 55%, #532AA0 100%);
  background-size: 200% 200%;
  background-position: 50% 50%;
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.35s ease, box-shadow 0.25s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgb(98 52 181 / .25);
}
.action:hover {
  background-position: 50% 100%;
  box-shadow: var(--shadow-glow);
}
.action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px #F6F4FA, 0 0 0 7px var(--accent);
}
.action:active { box-shadow: none; transform: translateY(1px); }

.action--quiet {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.action--quiet:hover { background: var(--soft); box-shadow: none; }
.action--quiet:focus-visible {
  box-shadow: 0 0 0 4px #F6F4FA, 0 0 0 7px var(--accent);
}
.action--quiet:active { box-shadow: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero__text h1 { margin: 0 0 16px; }
.hero__sub {
  font-size: clamp(1.1rem, 0.8vw + 0.9rem, 1.35rem);
  color: var(--muted);
  margin-bottom: 28px;
}
.hero__figure { display: grid; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 10px solid var(--surface);
  box-shadow: var(--shadow);
}

html.is-live .hero__text > * {
  animation: hero-rise 0.5s ease both;
}
html.is-live .hero__text > *:nth-child(2) { animation-delay: 0.08s; }
html.is-live .hero__text > *:nth-child(3) { animation-delay: 0.16s; }
@keyframes hero-rise {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.tabs__tab {
  padding: 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.tabs__tab:hover { border-color: var(--accent); }
.tabs__tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tabs__tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.tabs__panels {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.tabs__panel p { margin: 0; }

/* Services list */
.topics { list-style: none; margin: 0; padding: 0; }
.topics__row {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 12px 32px;
  padding: 22px 8px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.topics__row:last-child { border-bottom: 1px solid var(--line); }
.topics__row h3 { margin: 0; }
.topics__row p { margin: 0; max-width: 62ch; }

/* Plate (contrast panel) */
.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
}
.plate h2 { color: var(--plate-text); }
.plate p { color: #D9D3E6; }
.plate a:not(.action) { color: #C9B7EE; }

/* Form */
.letter { max-width: 680px; }
.letter__row { margin-bottom: 20px; }
.letter__tag {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}
.letter__box {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}
.letter__box:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(98 52 181 / .25);
}
.letter__area { resize: vertical; min-height: 120px; }
.letter__agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  font-size: 15px;
  color: #D9D3E6;
}
.letter__agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.letter__agree label { max-width: 60ch; }
.letter__hint { font-size: 14px; color: #B7AFC9; margin-bottom: 22px; }
.letter__alert {
  color: #FFD9A8;
  font-size: 14px;
  font-weight: 600;
  margin: -12px 0 16px;
}
.letter__send { border: none; }
.letter.is-sending .letter__send {
  opacity: 0.6;
  pointer-events: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.split__head { position: sticky; top: 24px; }
.split__body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Cards */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.tile p { margin: 0; color: var(--muted); }
.tile:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* Gallery */
.frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.frame {
  margin: 0;
  background: var(--surface);
  padding: 10px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}
.frame:hover { box-shadow: var(--shadow-glow); }
.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.frame figcaption {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 8px 6px;
  line-height: 1.5;
}

/* FAQ */
.queries { max-width: 760px; }
.queries__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  padding: 4px 8px;
  box-shadow: var(--shadow);
}
.queries__item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.1rem;
  padding: 14px 12px;
  list-style-position: outside;
}
.queries__item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-btn); }
.queries__item p { padding: 0 12px 16px; margin: 0; color: var(--muted); }

.copy { max-width: 760px; }
.copy h2 { margin-top: 40px; }
.copy ol, .copy ul { padding-left: 24px; margin: 0 0 16px; }
.copy li { margin-bottom: 8px; }
.copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 16px;
}
.copy th, .copy td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.copy th { font-family: var(--font-head); background: var(--soft); }

/* Contacts block */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.contact-card ul { list-style: none; margin: 0; padding: 0; }
.contact-card li { margin-bottom: 10px; }
.contact-card li span {
  display: inline-block;
  font-weight: 600;
  margin-right: 8px;
  color: var(--muted);
}

/* Footer */
.colophon {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding-top: clamp(48px, 6vw, 80px);
  margin-top: 0;
}
.colophon__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.colophon__unit .lead { color: #C9B7EE; margin-bottom: 12px; }
.colophon address {
  font-style: normal;
  color: #B7AFC9;
  line-height: 1.6;
}
.colophon address p { margin: 0 0 10px; color: #B7AFC9; }
.colophon__unit ul { list-style: none; margin: 0; padding: 0; }
.colophon__unit li { margin-bottom: 8px; }
.colophon__unit a { color: #D9D3E6; text-decoration: none; }
.colophon__unit a:hover { color: #C9B7EE; text-decoration: underline; }
.colophon__unit ul li span { color: #B7AFC9; }
.colophon__base {
  border-top: 1px solid #3A3350;
  padding-block: 20px 24px;
}
.colophon__line { margin: 0; font-size: 14px; color: #B7AFC9; }

.simple-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.simple-hero .action { margin-top: 12px; }

/* Mobile menu */
@media (max-width: 767px) {
  .menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .menu__trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 50;
  }
  .menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .menu__list {
    flex-direction: column;
    padding: 16px clamp(16px, 4vw, 40px) 20px;
    gap: 10px;
  }
  .menu__item { display: block; }
  .brandmark { margin-left: auto; }
}

@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; }
  .hero__figure { max-width: 520px; }
}

@media (max-width: 767px) {
  .split__body { grid-template-columns: 1fr; }
  .topics__row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 639px) {
  .frames { grid-template-columns: 1fr; }
  .colophon__grid { grid-template-columns: 1fr; }
  .topbar__contacts { text-align: left; }
  .topbar__contacts span[aria-hidden="true"] { display: none; }
  .topbar__contacts a { display: block; }
}

@media (min-width: 1280px) {
  .wrap { max-width: 1240px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-live .block--enter:not(.is-shown) {
    opacity: 1;
    transform: none;
  }
}

/* Overflow guards */
html { max-width: 100%; }
.topbar, .colophon { max-width: 100%; overflow-x: clip; }
.copy table { max-width: 100%; }
.copy th, .copy td { overflow-wrap: anywhere; }
