:root {
  --bg: #fbf8f4;
  --surface: #fffdf9;
  --surface-muted: #f3ebe4;
  --ink: #241719;
  --muted: #7d6862;
  --line: #dccbc2;
  --brand: #5c0f19;
  --brand-dark: #3f0810;
  --sage: #8c9474;
  --blush: #d3aaa1;
  --shadow: 0 20px 60px rgba(56, 20, 24, 0.12);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(92, 15, 25, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), #fffaf7 44%, var(--bg));
  background-size: 96px 96px, auto;
  color: var(--ink);
  font-family: var(--body);
  letter-spacing: 0;
}

body.yulichka-redesign-active {
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 48px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  padding: 10px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
}

.header-cta {
  justify-self: end;
  min-width: 170px;
  padding: 15px 24px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff7f2;
  font-weight: 700;
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 0 30px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  color: #fff7f2;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
}

.button-secondary {
  background: transparent;
  color: var(--brand);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(92, 15, 25, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1fr);
  gap: 56px;
  min-height: calc(100vh - 76px);
  padding: 24px 64px 18px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
  padding: 48px 0 32px 56px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 70px;
  width: 1px;
  height: 128px;
  background: var(--line);
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--brand);
  font-family: var(--display);
  font-size: clamp(68px, 8vw, 128px);
  font-weight: 600;
  line-height: 0.88;
}

.hero-copy p {
  margin: 28px 0 0;
  color: #332326;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 72px;
  color: var(--muted);
  font-size: 15px;
}

.hero-location svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blush);
  stroke-width: 1.8;
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  align-self: center;
  height: min(72vh, 660px);
  min-height: 520px;
  padding-right: 44px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(92, 15, 25, 0.14);
  object-fit: cover;
}

.media-large {
  grid-row: 1 / 3;
}

.media-top,
.media-bottom {
  aspect-ratio: 1 / 1;
}

.vertical-sign {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  height: 100%;
  place-items: center;
  color: #9b6e65;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.quick-booking {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.38fr);
  border-bottom: 1px solid var(--line);
}

.service-snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
}

.service-snapshot article {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 156px;
  min-width: 0;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.service-snapshot svg {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #b6847a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.service-snapshot span,
.booking-form h2 {
  display: block;
  color: var(--brand-dark);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
}

.service-snapshot strong {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.booking-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) minmax(170px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 28px 42px;
}

.booking-form-shortcode {
  display: block;
}

.booking-form-shortcode form {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.booking-form-shortcode input,
.booking-form-shortcode select,
.booking-form-shortcode textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 0 14px;
}

.booking-form-shortcode textarea {
  min-height: 120px;
  padding-top: 12px;
}

.booking-form-shortcode input[type="submit"],
.booking-form-shortcode button {
  min-height: 46px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff7f2;
  cursor: pointer;
  font-weight: 700;
}

.booking-form h2 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

.booking-form label {
  display: grid;
  gap: 8px;
}

.booking-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 0 14px;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: 2px solid rgba(92, 15, 25, 0.22);
  outline-offset: 2px;
}

.booking-form .button {
  min-height: 46px;
  padding-inline: 22px;
}

.booking-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-note.is-success {
  color: #2f6f45;
}

.form-note.is-error {
  color: #9b2434;
}

.studio-section,
.course,
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 0.5fr);
  gap: 72px;
  align-items: center;
  padding: 96px 72px;
}

.section-copy,
.course-copy {
  max-width: 600px;
}

.section-index {
  display: block;
  margin-bottom: 18px;
  color: #9b6e65;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--brand);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 600;
  line-height: 0.96;
}

.section-copy p,
.course-copy p,
.contacts p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.studio-image {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
}

.studio-image img,
.course-media img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article {
  min-height: 270px;
  padding: 38px;
  border-right: 1px solid var(--line);
}

.principles article:last-child {
  border-right: 0;
}

.principles span {
  color: #b6847a;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.principles h3,
.service-card h3 {
  margin: 26px 0 12px;
  color: var(--brand);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
}

.principles p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services,
.portfolio {
  padding: 96px 72px;
  border-bottom: 1px solid var(--line);
}

.services .section-copy,
.portfolio .section-copy {
  max-width: 760px;
  margin-bottom: 44px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 6px;
  object-fit: cover;
}

.service-card ul,
.check-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.service-card li:last-child {
  border-bottom: 0;
}

.service-card li strong {
  color: var(--brand-dark);
  white-space: nowrap;
}

.course {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  background: #f7f1eb;
  border-bottom: 1px solid var(--line);
}

.course-media {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--surface);
}

.course-copy .button {
  margin-top: 28px;
}

.certificates-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 12%, rgba(211, 170, 161, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.94), rgba(247, 241, 235, 0.78));
  box-shadow: var(--shadow);
}

.certificates-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 18px;
  border-bottom: 1px solid rgba(92, 15, 25, 0.14);
}

.certificates-head .section-index {
  margin-bottom: 10px;
}

.certificates-head h3 {
  margin: 0;
  color: var(--brand);
  font-family: var(--display);
  font-size: clamp(31px, 3vw, 46px);
  font-weight: 600;
  line-height: 1;
}

.certificates-controls {
  display: flex;
  gap: 10px;
}

.cert-arrow {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(92, 15, 25, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.84);
  color: var(--brand);
  cursor: pointer;
}

.cert-arrow:hover,
.cert-arrow:focus-visible {
  background: var(--brand);
  color: #fff7f2;
}

.cert-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.cert-slider {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 28px 30px;
}

.cert-track {
  display: flex;
  gap: 18px;
  transition: transform 420ms ease;
  will-change: transform;
}

.cert-slide {
  position: relative;
  flex: 0 0 min(32%, 250px);
  min-width: 210px;
  border: 1px solid rgba(92, 15, 25, 0.18);
  border-radius: var(--radius);
  background: #fffdf9;
  box-shadow: 0 18px 42px rgba(56, 20, 24, 0.1);
  overflow: hidden;
  transform: scale(0.94);
  opacity: 0.68;
  transition: transform 260ms ease, opacity 260ms ease, box-shadow 260ms ease;
}

.cert-slide.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 24px 60px rgba(56, 20, 24, 0.18);
}

.cert-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cert-slide::after {
  content: "Відкрити";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(92, 15, 25, 0.84);
  color: #fff7f2;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cert-slide:hover::after,
.cert-slide:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.cert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 30px 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cert-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cert-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(92, 15, 25, 0.24);
  cursor: pointer;
  padding: 0;
}

.cert-dot.is-active {
  width: 26px;
  background: var(--brand);
}

.check-list {
  margin-top: 26px;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid rgba(92, 15, 25, 0.16);
  color: var(--ink);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid var(--sage);
  border-left: 2px solid var(--sage);
  transform: rotate(-45deg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr 0.9fr;
  gap: 12px;
  align-items: stretch;
}

.portfolio-grid img {
  width: 100%;
  height: 460px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.portfolio-grid img:nth-child(2),
.portfolio-grid img:nth-child(4) {
  transform: translateY(42px);
}

.contacts {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.map-shell {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 24% 28%, rgba(140, 148, 116, 0.18), transparent 24%),
    radial-gradient(circle at 72% 66%, rgba(211, 170, 161, 0.22), transparent 28%),
    linear-gradient(135deg, #fbf8f4 0%, #f1e6de 100%);
}

.map-shell::before,
.map-shell::after {
  content: "";
  position: absolute;
  inset: 20% -10%;
  border-top: 1px solid rgba(92, 15, 25, 0.16);
  transform: rotate(-18deg);
}

.map-shell::after {
  inset: 44% -12%;
  transform: rotate(14deg);
}

.map-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.75) contrast(0.92);
}

.map-fallback {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100% - 64px));
  padding: 24px;
  border: 1px solid rgba(92, 15, 25, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow);
}

.map-fallback span {
  color: #9b6e65;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.map-fallback strong {
  color: var(--brand);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.05;
}

.map-fallback em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  color: var(--brand);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 14px 28px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .hero,
  .quick-booking,
  .studio-section,
  .course,
  .contacts {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    min-height: auto;
    padding: 56px 28px 20px;
  }

  .hero-copy {
    max-width: none;
    padding-left: 0;
  }

  .hero-copy::before {
    display: none;
  }

  .hero-location {
    padding-top: 42px;
  }

  .hero-media {
    height: 620px;
    min-height: 0;
  }

  .cert-slide {
    flex-basis: min(42%, 260px);
  }

  .service-snapshot {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-form {
    border-top: 1px solid var(--line);
  }

  .studio-section,
  .course,
  .contacts,
  .services,
  .portfolio {
    padding: 76px 28px;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    padding: 16px 18px;
  }

  .brand {
    font-size: 27px;
  }

  .header-cta {
    min-width: 126px;
    padding-inline: 16px;
  }

  .main-nav {
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 18px 0;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 17vw, 76px);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-media {
    grid-template-columns: 1fr 0.78fr;
    height: 430px;
    padding-right: 0;
  }

  .vertical-sign {
    display: none;
  }

  .service-snapshot,
  .principles,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .service-snapshot article,
  .principles article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 26px 20px;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .booking-form-shortcode form {
    grid-template-columns: 1fr;
  }

  .studio-section,
  .course,
  .contacts,
  .services,
  .portfolio {
    padding: 64px 18px;
  }

  h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .certificates-head,
  .cert-meta {
    padding-inline: 20px;
  }

  .certificates-head {
    flex-direction: column;
  }

  .cert-slider {
    padding-inline: 20px;
  }

  .cert-slide {
    flex-basis: 78%;
    min-width: 0;
  }

  .service-card img {
    min-height: 280px;
    max-height: 360px;
  }

  .service-card li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .portfolio-grid img {
    height: 360px;
  }

  .portfolio-grid img:nth-child(2),
  .portfolio-grid img:nth-child(4) {
    transform: none;
  }

  .map-shell {
    min-height: 340px;
  }

  .map-fallback {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
    padding: 18px;
  }

  .site-footer {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
