/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection,
::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* ==========================================================================
   CSS Variables - Color Palette
   ========================================================================== */

:root {
  --color-primary: #F29D52;
  --color-secondary: #515934;
  --color-dark: #40372F;
  --color-light: #F2E085;
  --color-text: #40372F;
  --color-text-light: #fff;
  --color-bg: #fff;
  --color-bg-alt: #F2F2F2;
  --color-border: #F2F2F2;
  --page-border-width: 15px;
  --page-border-color: var(--color-dark);
  --container-max-width: 1000px;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Tektur', sans-serif;
  --icon-paw-mask: url("data:image/svg+xml,%3Csvg width='298' height='298' viewBox='0 0 298 298' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M188.171,173.865c26.193,22.557 66.21,86.301 45.307,108.26c-35.072,36.843 -58.501,-3.175 -89.783,4.134c-14.434,3.373 -75.908,24.784 -93.717,-4.055c-18.192,-29.46 57.465,-141.722 106.659,-127.561c15.453,4.448 25.953,14.308 31.534,19.221Z' fill='black'/%3E%3Cpath d='M225.36,9.825c42.361,39.764 -12.826,138.075 -50.471,105.342c-34.791,-30.251 4.98,-133.494 50.471,-105.342Z' fill='black'/%3E%3Cpath d='M89.207,106.886c-9.42,-11.798 -10.188,-11.418 -15.094,-25.661c-0.611,-1.772 -4.23,-12.279 -4.941,-22.906c-4.064,-60.717 39.575,-75.903 63.072,-36.665c32.039,53.505 -3.3,125.305 -43.036,85.232Z' fill='black'/%3E%3Cpath d='M69.216,182.825c-31.977,34.101 -87.44,-37.281 -63.3,-80.354c22.083,-39.402 81.372,7.57 72.404,60.815c-1.854,11.01 -7.988,18.225 -9.105,19.539Z' fill='black'/%3E%3Cpath d='M225.214,199.992c-0.84,-1.36 -6.048,-9.794 -7.049,-18.692c-5.963,-53.037 49.234,-93.178 71.171,-62.649c29.621,41.221 -28.714,122.366 -64.122,81.341Z' fill='black'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 3rem 1rem;
}

.section--light {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.section--dimmed {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

#about {
  position: relative;
  overflow: hidden;
  padding-bottom: 8rem;
}

#about::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 150px;
  background-color: var(--color-text-light);
  opacity: 0.08;
  mask-image: url("../img/pets.svg");
  -webkit-mask-image: url("../img/pets.svg");
  mask-size: auto 150px;
  -webkit-mask-size: auto 150px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
  mask-position: bottom;
  -webkit-mask-position: bottom;
  pointer-events: none;
  z-index: 0;
}

.section__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section__title {
  font-size: 2rem;
  margin: 0 0 2rem;
  text-align: center;
}

.section__text {
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.section__content {
  line-height: 1.6;
}

.page__body {
  line-height: 1.7;
  font-size: 1rem;
}

.page__body p {
  margin: 0 0 1rem;
}

.page__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.page__body thead {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.page__body thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
}

.page__body tbody tr:nth-child(odd) {
  background: color-mix(in srgb, var(--color-bg-alt) 20%, var(--color-bg) 80%);
}

.page__body tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-bg-alt) 90%, var(--color-bg) 10%);
}

.page__body tbody tr:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-bg-alt) 90%);
}

.page__body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.page__body tbody tr:last-child td {
  border-bottom: 1px solid color-mix(in srgb, var(--color-dark) 40%, var(--color-border) 60%);
}

.section--dark .page__body table {
  border-color: color-mix(in srgb, var(--color-text-light) 24%, transparent);
}

.section--dark .page__body thead {
  background: var(--color-light);
  color: var(--color-dark);
}

.section--dark .page__body tbody tr:nth-child(odd) {
  background: color-mix(in srgb, #000 10%, var(--color-dark) 90%);
}

.section--dark .page__body tbody tr:nth-child(even) {
  background: color-mix(in srgb, #000 50%, var(--color-dark) 50%);
}

.page__body blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg) 92%);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
}

.page__body blockquote::before {
  content: "“";
  position: absolute;
  top: -0.5rem;
  left: 0.75rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: color-mix(in srgb, var(--color-dark) 24%, var(--color-bg) 76%);
  pointer-events: none;
}

.page__body blockquote p:last-child {
  margin-bottom: 0;
}

.section--dark .page__body blockquote {
  border-left-color: var(--color-light);
  background: color-mix(in srgb, #000 32%, var(--color-dark) 68%);
}

.section--dark .page__body blockquote::before {
  color: color-mix(in srgb, var(--color-light) 30%, transparent);
}

.page__body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page__body a:hover,
.page__body a:focus-visible {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
}

.section--dark .page__body a {
  color: var(--color-light);
  text-decoration-color: color-mix(in srgb, var(--color-light) 80%, transparent);
}

.section--dark .page__body a:hover,
.section--dark .page__body a:focus-visible {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

.page__body .about-intro {
  margin-bottom: 2rem;
}

.page__body .about-intro__lead {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.8;
  text-align: justify;
}

.page__body .about-intro__lead .highlight {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1em;
}

.page__body .about-intro__lead .accent {
  color: var(--color-light);
  font-style: normal;
  font-weight: 600;
}

.section--dark .page__body .about-intro__lead .accent {
  color: var(--color-light);
}

.page__body .about-mission {
  margin: 2rem 0;
}

.page__body .about-mission p {
  text-align: justify;
}

.page__body .about-mission__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page__body .about-mission__list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.7;
  text-align: left;
}

.page__body .about-mission__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.7;
  display: inline-block;
  width: 1.2em;
}

.section--dark .page__body .about-mission__list li::before {
  color: var(--color-primary);
}

.page__body .about-process {
  margin: 2rem 0;
}

.page__body .about-process p {
  text-align: justify;
}

.page__body .about-process__outcome {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-left: 3px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  border-radius: 4px;
}

.page__body .about-process__outcome p {
  margin: 0;
  line-height: 1.7;
  text-align: justify;
}

.page__body .about-process__outcome p:not(:last-child) {
  margin-bottom: 1rem;
}

.section--dark .page__body .about-process__outcome {
  background: color-mix(in srgb, var(--color-primary) 15%, var(--color-dark) 85%);
  border-left-color: var(--color-primary);
}

/* Responsive adjustments for about section */
@media (max-width: 767px) {
  .page__body .about-intro__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: left;
  }
  
  .page__body .about-mission p,
  .page__body .about-process p,
  .page__body .about-process__outcome p {
    text-align: left;
  }
  
  .page__body .about-mission__list {
    gap: 0.5rem;
    margin-left: 1rem;
  }
  
  .page__body .about-mission__list li {
    padding-left: 1.5rem;
  }
  
  .page__body .about-process__outcome {
    padding: 1rem 1.25rem;
    margin-top: 2rem;
  }
}

.hero_about p {
  text-align: justify;
}

.hero_about > p:first-child {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero_about > p:first-child strong {
  font-size: 1.1em;
}

.hero_about h2,
.hero_about h3 {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  margin: 0 0 1rem 0;
  text-align: justify;
}

.hero_about strong {
  color: var(--color-primary);
  font-weight: 700;
}

.hero_about em {
  color: var(--color-light);
  font-style: normal;
  font-weight: 600;
}

.hero_about ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero_about ul li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.7;
  text-align: left;
}

.hero_about ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.7;
}

.hero_about blockquote {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border: none;
  border-left: 3px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 0 0;
  border-radius: 4px;
  font-style: normal;
  quotes: none;
}

.section--dark .hero_about blockquote {
  background: color-mix(in srgb, var(--color-primary) 15%, var(--color-dark) 85%);
}

.hero_about blockquote::before,
.hero_about blockquote::after {
  content: none;
}

.hero_about blockquote p {
  margin: 0;
  line-height: 1.7;
  text-align: justify;
  font-style: normal;
}

.hero_about blockquote p:not(:last-child) {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .hero_about p,
  .hero_about h2,
  .hero_about h3 {
    text-align: left;
  }
  
  .hero_about > p:first-child,
  .hero_about h2,
  .hero_about h3 {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  
  .hero_about ul {
    margin-left: 1rem;
  }
  
  .hero_about blockquote {
    padding: 1rem 1.25rem;
  }
}

.map-container {
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  display: block;
  border: none;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 1rem;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .map-container iframe {
    height: 450px;
  }
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  color: var(--color-text);
  background-color: var(--color-bg);
  position: relative;
}

@media (min-width: 768px) {
  body {
    margin: var(--page-border-width);
    padding-top: 0;
    padding-bottom: 0;
  }
}

.page-border {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  display: none;
}

.page-border__top,
.page-border__right,
.page-border__bottom,
.page-border__left {
  background: var(--page-border-color);
  position: fixed;
  z-index: 9999;
  opacity: 0;
}

.page-border__top,
.page-border__bottom {
  width: 100%;
  height: var(--page-border-width);
  left: 0;
}

.page-border__left,
.page-border__right {
  width: var(--page-border-width);
  height: 100%;
  top: 0;
}

.page-border__top {
  top: 0;
}

.page-border__right {
  right: 0;
}

.page-border__bottom {
  bottom: 0;
}

.page-border__left {
  left: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-border--fade-in-down {
  animation: fadeInDown 0.7s ease 0.2s forwards;
}

.page-border--fade-in-up {
  animation: fadeInUp 0.7s ease 0.2s forwards;
}

.page-border--fade-in-left {
  animation: fadeInLeft 0.7s ease 0.2s forwards;
}

.page-border--fade-in-right {
  animation: fadeInRight 0.7s ease 0.2s forwards;
}

@media (min-width: 768px) {
  .page-border {
    display: block;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

p {
  line-height: 25px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  padding: 20px 0;
}

h2 {
  padding: 14px 0;
}

h3 {
  padding: 10px 0;
}

.h-bordered {
  display: block;
  border: 5px solid var(--color-secondary);
  color: var(--color-secondary);
  margin: 1rem auto;
  padding: 0.3rem 0.8rem;
  text-align: center;
  width: fit-content;
  border-radius: 25px;
}

.section__title.h-bordered {
  margin: 1rem auto 3rem;
}

.section--dark .h-bordered {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease-out, border-color 0.3s ease-out;
}

.header--pinned,
.header--menu-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header--pinned {
  animation: fadeInDown 0.3s ease-out;
}

.header__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header__social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
  width: 24px;
  height: 24px;
  position: relative;
}

.header__social-link:hover,
.header__social-link:focus {
  color: var(--color-primary);
}

.header__toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  position: relative;
  width: 32px;
  height: 32px;
}

.header__toggle-icon,
.header__toggle-icon::before,
.header__toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.header__toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header__toggle-icon::before,
.header__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.header__toggle-icon::before {
  top: -8px;
}

.header__toggle-icon::after {
  top: 8px;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon {
  background: transparent;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  position: fixed;
  top: 9vh;
  left: 0;
  right: 0;
  height: 80vh;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s ease-out, max-height 0.5s ease-out;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 80vh;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s ease-out, max-height 0.5s ease-out;
}

.nav__logo {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
}

.nav__logo-img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  flex: 1;
  overflow-y: auto;
  width: 100%;
}

.nav__link {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

.nav__link:hover,
.nav__link:focus {
  color: var(--color-primary);
}

.nav__contacts {
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-bg);
}

.nav__phone,
.nav__email {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav__phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.nav__phone:hover,
.nav__phone:focus,
.nav__email:hover,
.nav__email:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .header__container {
    justify-content: space-between;
  }

  .header__toggle {
    order: 1;
  }
}

@media (min-width: 768px) {
  .header--pinned,
  .header--menu-open {
    top: var(--page-border-width);
    left: var(--page-border-width);
    right: var(--page-border-width);
  }

  .header__toggle {
    display: none;
  }

  .header__container {
    justify-content: space-between;
  }

  .nav {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    overflow: visible;
    flex: 1;
    flex-direction: row;
    z-index: auto;
    box-shadow: none;
  }

  .nav__logo,
  .nav__contacts {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 0;
    justify-content: flex-end;
    align-items: center;
    text-align: left;
  }

  .nav__link {
    padding: 0.5rem 0.75rem;
    border: none;
    width: auto;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease, color 0.3s ease;
  }

  .nav__link:hover,
  .nav__link:focus {
    background-color: transparent;
    border-bottom-color: var(--color-primary);
  }
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

[class*="icon--"]::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.icon--location::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='3' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='3' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon--facebook::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon--instagram::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon--youtube::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolygon points='9.75 15.02 15.5 11.75 9.75 8.48' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolygon points='9.75 15.02 15.5 11.75 9.75 8.48' fill='black'/%3E%3C/svg%3E");
}

.icon--telegram::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.5 2.5L2.5 10.5L8.5 13.5L15.5 7.5L10.5 14.5L18.5 21.5L22.5 2.5Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.5 2.5L2.5 10.5L8.5 13.5L15.5 7.5L10.5 14.5L18.5 21.5L22.5 2.5Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon--phone::before {
  content: none;
}

.icon--phone::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transform: translateY(-2px);
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.9.37 1.77.72 2.6a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.48-1.48a2 2 0 0 1 2.11-.45c.83.35 1.7.6 2.6.72A2 2 0 0 1 22 16.92Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.9.37 1.77.72 2.6a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.48-1.48a2 2 0 0 1 2.11-.45c.83.35 1.7.6 2.6.72A2 2 0 0 1 22 16.92Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav__phone.icon--phone,
.footer__phone.icon--phone {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.icon--paw::before {
  mask-image: var(--icon-paw-mask);
  -webkit-mask-image: var(--icon-paw-mask);
}

.icon--qr::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12,14l0,-1l1,0l0,1l-1,0Z'/%3E%3Cpath d='M9,12l0,-1l1,-0l0,1l-1,0Z'/%3E%3Cpath d='M9,15l2,0l0,-1l-1,0l0,-1l-1,0l0,2Z'/%3E%3Cpath d='M13,13l0,-2l1,-0l0,2l-1,0Z'/%3E%3Cpath d='M14,13l1,0l0,2l-2,0l0,-1l1,0l0,-1Z'/%3E%3Cpath d='M13,10l0,-1l2,0l0,2l-1,0l0,-1l-1,0Z'/%3E%3Cpath d='M12,10l-1,0l0,2l-1,0l0,1l2,0l0,-3Z'/%3E%3Cpath d='M9,10l0,-1l2,0l0,1l-2,0Z'/%3E%3Crect x='3' y='11' width='2' height='2'/%3E%3Cpath d='M7,15l-6,0l0,-6l6,0l0,6Zm-5,-1l4,0l0,-4l-4,0l0,4Z'/%3E%3Crect x='11' y='3' width='2' height='2'/%3E%3Cpath d='M15,7l-6,0l0,-6l6,0l0,6Zm-5,-1l4,0l0,-4l-4,0l0,4Z'/%3E%3Crect x='3' y='3' width='2' height='2'/%3E%3Cpath d='M7,7l-6,0l0,-6l6,0l0,6Zm-5,-1l4,0l0,-4l-4,0l0,4Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12,14l0,-1l1,0l0,1l-1,0Z'/%3E%3Cpath d='M9,12l0,-1l1,-0l0,1l-1,0Z'/%3E%3Cpath d='M9,15l2,0l0,-1l-1,0l0,-1l-1,0l0,2Z'/%3E%3Cpath d='M13,13l0,-2l1,-0l0,2l-1,0Z'/%3E%3Cpath d='M14,13l1,0l0,2l-2,0l0,-1l1,0l0,-1Z'/%3E%3Cpath d='M13,10l0,-1l2,0l0,2l-1,0l0,-1l-1,0Z'/%3E%3Cpath d='M12,10l-1,0l0,2l-1,0l0,1l2,0l0,-3Z'/%3E%3Cpath d='M9,10l0,-1l2,0l0,1l-2,0Z'/%3E%3Crect x='3' y='11' width='2' height='2'/%3E%3Cpath d='M7,15l-6,0l0,-6l6,0l0,6Zm-5,-1l4,0l0,-4l-4,0l0,4Z'/%3E%3Crect x='11' y='3' width='2' height='2'/%3E%3Cpath d='M15,7l-6,0l0,-6l6,0l0,6Zm-5,-1l4,0l0,-4l-4,0l0,4Z'/%3E%3Crect x='3' y='3' width='2' height='2'/%3E%3Cpath d='M7,7l-6,0l0,-6l6,0l0,6Zm-5,-1l4,0l0,-4l-4,0l0,4Z'/%3E%3C/svg%3E");
}

.icon--arrow::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Generic Page Template
   ========================================================================== */

.section--page {
  padding-top: 6rem;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 0 1rem 0;
  text-align: center;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/banner-image-1.jpg") no-repeat center bottom;
  background-size: 200%;
  will-change: transform;
  transform: translateY(var(--parallax-y, 0));
  z-index: 0;
}

.hero__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 4rem;
  padding-bottom: 4rem;
  box-sizing: border-box;
}

.hero__empty {
  flex: 0 0 50%;
  width: 100%;
}

.hero__logo-img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
}

.hero__date {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 auto 1rem;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px) skewX(-12deg);
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.3s ease-out, filter 0.3s ease-out;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero__date:hover {
  transform: translateY(-5px) skewX(-12deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.hero__date:active,
.hero__date.hero__date--visible:active {
  transform: translateY(-2px) skewX(-12deg) scale(0.98);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero__date.hero__date--visible:hover {
  transform: translateY(-5px) skewX(-12deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.hero__date span {
  display: inline-block;
  transform: skewX(12deg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero__date .hero__date-year {
  font-size: 12px;
  position: absolute;
  bottom: 5px;
  right: 28px;
  transform: none;
}

.hero__date span::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 15%;
  height: 100%;
  background: var(--color-primary);
  transform: skewX(-12deg);
  pointer-events: none;
  z-index: 2;
  animation-fill-mode: none;
}

.hero__date.hero__date--visible span::after {
  animation: shimmer 0.8s ease-out 0.7s;
  animation-fill-mode: none;
}

.hero__date:hover span::after,
.hero__date:focus span::after,
.hero__date.hero__date--visible:hover span::after,
.hero__date.hero__date--visible:focus span::after {
  left: -20%;
  animation: shimmer-hover 0.8s ease-out 0s;
  animation-fill-mode: none;
}

.hero__date::before,
.hero__date::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15px;
  background: var(--color-primary);
  z-index: -1;
  pointer-events: none;
}

.hero__date::before {
  left: -12px;
  transform: skewX(12deg);
}

.hero__date::after {
  right: -12px;
  transform: skewX(12deg);
}

.hero__date.hero__date--visible {
  opacity: 1;
  transform: translateY(0) skewX(-12deg);
}

@keyframes shimmer {
  0% {
    left: -20%;
  }
  100% {
    left: 100%;
  }
}

@keyframes shimmer-hover {
  0% {
    left: -20%;
  }
  100% {
    left: 100%;
  }
}

.hero__address {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 auto 1.5rem;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.hero__address:hover,
.hero__address:focus {
  color: var(--color-primary);
}

.hero__address::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='3' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='3' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  flex-shrink: 0;
}

.hero__address.hero__address--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  font-size: 1.1rem;
  margin: auto 0 0 0;
  line-height: 1.3;
  color: inherit;
  font-weight: 700;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title-text {
  flex: 0 0 85%;
  display: flex;
  align-items: center;
}

.hero__title-arrow {
  flex: 0 0 15%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  color: var(--color-primary);
  transition: transform 0.3s ease-out, color 0.3s ease;
  min-height: 40px;
}

.hero__title-arrow svg {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.hero__title:hover .hero__title-arrow,
.hero__title:focus .hero__title-arrow {
  transform: translateX(5px);
  color: var(--color-secondary);
}

.hero__title:active .hero__title-arrow {
  transform: translateX(8px);
}

.hero__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-light);
  border-radius: 12px;
  transform: skewX(-8deg);
  z-index: -1;
  opacity: 0.5;
}

.hero__title.hero__title--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__paw {
  position: absolute;
  color: var(--color-primary);
  opacity: 0.6;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease-out, filter 0.3s ease-out;
  pointer-events: none;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.hero__paw.icon--paw::before {
  width: 40px;
  height: 40px;
}

.hero__paw--bottom-left {
  bottom: -15px;
  left: -15px;
  transform: rotate(-15deg);
}

.hero__paw--top-right {
  top: -15px;
  right: -15px;
  transform: rotate(15deg);
}

.hero__title:hover .hero__paw {
  color: var(--color-secondary);
  opacity: 0.8;
}

.hero__title:hover .hero__paw--bottom-left {
  transform: rotate(-15deg) translateY(-8px);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.3));
}

.hero__title:hover .hero__paw--top-right {
  transform: rotate(15deg) translateY(-8px);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.3));
}

.hero__subtitle {
  font-size: 1.125rem;
  margin: 0 0 2rem;
  color: inherit;
}

.hero__cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: 4px;
}

.hero__cta:hover,
.hero__cta:focus {
  background: var(--color-secondary);
}

@media (min-width: 768px) {
  .hero {
    padding: 0 1rem 0rem;
    min-height: 100vh;
  }

  .hero::before {
    background-position: right bottom;
    background-size: contain;
  }

  .hero__container {
    flex-direction: row;
    gap: 3rem;
    flex: 1;
    align-self: stretch;
  }

  .hero__content {
    flex: 0 0 65%;
    width: 65%;
    align-self: stretch;
    padding-top: 4rem;
    padding-bottom: 4rem;
    justify-content: center;
  }

  .hero__empty {
    flex: 0 0 35%;
    width: 35%;
  }

  .hero__logo-img {
    max-width: 120px;
  }

  .hero__date {
    font-size: 4.5rem;
    padding: 1rem 3rem;
    margin-bottom: 1.5rem;
  }

  .hero__date .hero__date-year {
    right: 44px;
  }

  .hero__address {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .hero__title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0 0 2.5rem 0;
    padding: 1.25rem 2rem;
  }

  .hero__title-text {
    flex: 0 0 95%;
  }

  .hero__title-arrow {
    flex: 0 0 5%;
  }

  .hero__paw {
    width: 50px;
    height: 50px;
  }

  .hero__paw.icon--paw::before {
    width: 50px;
    height: 50px;
  }

  .hero__paw--bottom-left {
    bottom: -20px;
    left: -20px;
  }

  .hero__paw--top-right {
    top: -20px;
    right: -20px;
  }
}

/* ==========================================================================
   Carousel Card (Expert Committee & Speakers)
   ========================================================================== */

.speaker-card {
  position: relative;
  width: 92%;
  height: 400px;
  border-radius: 20px;
  overflow: visible;
  margin: 0 auto;
}

.speaker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  opacity: 0.3;
  border-radius: 20px;
  transform: rotate(-4deg) skewY(2deg);
  transform-origin: center center;
  z-index: 1;
  transition: transform 0.3s ease;
}

.speaker-card:hover::before {
  transform: rotate(-6deg) skewY(3deg);
}

.speaker-card__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;
  height: 105%;
  background: var(--color-bg-alt);
  border-radius: 20px;
  transform: translate(-50%, -50%) rotate(3deg) skewY(-1deg);
  transform-origin: center center;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.speaker-card__image {
  width: 100%;
  height: 60%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.speaker-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-card__image img {
  transform: scale(1.1);
}

.speaker-card__content {
  width: 100%;
  height: 40%;
  margin: 0;
  padding: 0.5rem 1rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transform: rotate(-3deg) skewY(1deg);
}

.speaker-card__name {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.speaker-card__position {
  font-size: 0.875rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.speaker-card__info {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.embla--committee .speaker-card__inner {
  background: var(--color-secondary);
}

.embla--committee .speaker-card__content,
.embla--committee .speaker-card__name,
.embla--committee .speaker-card__position,
.embla--committee .speaker-card__info {
  color: var(--color-text-light);
}

/* ==========================================================================
   Universal Tabs
   ========================================================================== */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.tab:hover,
.tab:focus {
  color: var(--color-primary);
  outline: none;
}

.tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tabs-content {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

.tabs-panel {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0.3s;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.tabs-panel--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0s;
  pointer-events: auto;
  position: relative;
}

/* ==========================================================================
   Tickets Section
   ========================================================================== */

.tickets {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tickets__separator {
  width: 100%;
  height: 1px;
  background-color: var(--color-secondary);
  margin: 3rem 0;
  opacity: 0.3;
  flex-shrink: 0;
}

.tickets--online {
  justify-content: center;
}


.ticket-card {
  position: relative;
  width: 100%;
  transition: transform 0.3s ease;
  perspective: 1000px;
}

.ticket-card:not(:has(.ticket-card__flip.flip)):hover {
  transform: translateY(-4px);
}

.ticket-card:not(:has(.ticket-card__flip.flip)):hover .ticket-card__inner {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.ticket-card--featured {
  order: 2;
}

.ticket-card:first-child {
  order: 1;
}

.ticket-card:last-child {
  order: 3;
}

.ticket-card__flip {
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}

.ticket-card__flip.flip {
  transform: rotateY(180deg);
}

.ticket-card__front,
.ticket-card__back {
  width: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.ticket-card__front {
  z-index: 1;
}

.ticket-card__back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(-180deg);
}

.ticket-card__back-close {
  position: absolute;
  top: 0.5rem;
  left: -1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.ticket-card--featured .ticket-card__back-close {
  color: var(--color-text-light);
}

.ticket-card__back-close:hover,
.ticket-card__back-close:focus {
  color: var(--color-primary);
  transform: scale(1.1);
  outline: none;
}

.ticket-card--featured .ticket-card__back-close:hover,
.ticket-card--featured .ticket-card__back-close:focus {
  color: var(--color-light);
}

.ticket-card__back-close svg {
  width: 24px;
  height: 24px;
}

.ticket-card__back-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  justify-content: flex-start;
}

.ticket-card__back-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ticket-card__back-date {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ticket-card__back-date:hover,
.ticket-card__back-date:focus {
  color: var(--color-primary);
  outline: none;
}

.ticket-card--featured .ticket-card__back-date {
  color: var(--color-light);
}

.ticket-card--featured .ticket-card__back-date:hover,
.ticket-card--featured .ticket-card__back-date:focus {
  color: var(--color-primary);
}

.ticket-card__back-schedule {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.7;
  text-decoration: underline;
  transition: color 0.3s ease, opacity 0.3s ease;
  margin-top: -0.5rem;
}

.ticket-card__back-schedule:hover,
.ticket-card__back-schedule:focus {
  color: var(--color-primary);
  opacity: 1;
  outline: none;
}

.ticket-card--featured .ticket-card__back-schedule {
  color: var(--color-text-light);
  opacity: 0.8;
}

.ticket-card--featured .ticket-card__back-schedule:hover,
.ticket-card--featured .ticket-card__back-schedule:focus {
  color: var(--color-light);
  opacity: 1;
}

.ticket-card__inner {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-secondary);
  border-radius: 7px;
  padding: 0 1em;
  text-align: center;
  transition: box-shadow 0.3s ease;
  z-index: 1;
}

.ticket-card__inner > * {
  position: relative;
  z-index: 1;
}

.ticket-card--featured .ticket-card__inner {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.tickets--online .ticket-card--featured .ticket-card__inner {
  background: var(--color-dark);
  border-color: var(--color-dark);
}

.ticket-card--featured .ticket-card__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.08;
  background-image: url("../img/paw-pattern.svg");
  background-size: 600px 600px;
  background-repeat: repeat;
  background-position: -50px calc(-250px + var(--parallax-y, 0px));
  pointer-events: none;
  z-index: 0;
}

.ticket-card__head {
  position: relative;
  padding: 25px 7px;
  border-bottom: 1px solid var(--color-secondary);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-card--featured .ticket-card__head {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.ticket-card__title {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1;
  font-size: 1.3em;
  margin: 0;
  color: var(--color-text);
  display: inline-block;
}

.ticket-card--featured .ticket-card__title {
  color: var(--color-text-light);
}

.ticket-card__title .bold {
  font-weight: 700;
  color: var(--color-secondary);
}

.ticket-card--featured .ticket-card__title .bold {
  color: var(--color-light);
}

.ticket-card__icon {
  float: right;
  font-size: 30px;
  font-weight: bold;
  color: var(--color-primary);
  width: 30px;
}

.ticket-card__icon.icon--qr {
  height: auto;
}

.ticket-card__icon.icon--qr::after {
  content: 'Онлайн';
  display: block;
  position: absolute;
  right: 12px;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--color-primary);
  text-align: center;
  margin-top: 0.3em;
  line-height: 1;
  white-space: nowrap;
}

.ticket-card--featured .ticket-card__icon.icon--qr::after {
  color: var(--color-primary);
  opacity: 1;
}

.ticket-card__price {
  font-size: 50px;
  color: var(--color-text);
  margin: 0;
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket-card--featured .ticket-card__price {
  color: var(--color-text-light);
}

.ticket-card__price h2 {
  line-height: 1.2;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
}

.ticket-card__price--early {
  color: var(--color-primary);
  font-size: 50px;
  margin-bottom: 10px;
  position: relative;
}

.ticket-card__price-number {
  display: inline-block;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.ticket-card__price-part {
  display: inline-block;
}

.ticket-card__price-part + .ticket-card__price-part {
  margin-left: 0.15em;
}

.ticket-card__price--early .ticket-card__price-number::after {
  content: "₴";
  font-size: 0.5em;
  position: absolute;
  right: -0.6em;
  top: 0;
  line-height: 1;
}

.ticket-card__price--late .ticket-card__price-number::after {
  content: "₴";
  font-size: 0.5em;
  position: absolute;
  right: -0.5em;
  top: 0.5em;
  line-height: 1;
}

.ticket-card__price--early .ticket-card__period {
  font-size: 0.3em;
  font-weight: 300;
  text-transform: uppercase;
  display: block;
  margin-top: 0.1em;
  color: var(--color-primary);
  opacity: 0.8;
}

.ticket-card__price--late {
  font-size: 36px;
  color: var(--color-text);
  opacity: 0.6;
  margin-top: 10px;
  position: relative;
}

.ticket-card--featured .ticket-card__price--late {
  color: var(--color-text-light);
  opacity: 0.7;
}

.ticket-card__price--late .ticket-card__period {
  font-size: 0.3em;
  font-weight: 300;
  text-transform: uppercase;
  display: block;
  margin-top: -0.6em;
}

.ticket-card__description {
  margin: 0 10px 20px;
  padding: 0;
  text-align: left;
}

.ticket-card__description-text {
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.8;
}

.ticket-card__description-line {
  position: relative;
  display: block;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-secondary) 30%, transparent);
}

.ticket-card__description-line::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.ticket-card__description-line:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ticket-card--featured .ticket-card__description-line {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.ticket-card--featured .ticket-card__description-text {
  color: var(--color-text-light);
  opacity: 0.9;
}

.ticket-card__button {
  margin-bottom: 30px;
  padding: 12px 24px;
  border: 2px solid var(--color-border);
  background: none;
  color: var(--color-text);
  border-radius: 0;
  text-align: center;
  font-size: 1.35em;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms;
  width: auto;
  display: inline-block;
}

.ticket-card--featured .ticket-card__button {
  border-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 3px;
  background-color: var(--color-primary);
}

.ticket-card__button:hover,
.ticket-card__button:focus {
  border-radius: 3px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
  outline: none;
}

.ticket-card--featured .ticket-card__button:hover,
.ticket-card--featured .ticket-card__button:focus {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: rgba(255, 255, 255, 0.5);
}

.ticket-card__button:active {
  transform: scale(0.98);
}

@media (max-width: 767px) {
  .tickets__separator {
    display: none;
  }

  .tickets--online .ticket-card {
    flex: 1;
    max-width: none;
  }

  .ticket-card__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1em;
    text-align: center;
  }

  .ticket-card__head {
    flex: 0 0 auto;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid var(--color-secondary);
    border-right: none;
    padding-bottom: 1rem;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .ticket-card__title {
    font-size: 1.4em;
  }

  .ticket-card__price {
    flex: 1;
    font-size: 55px;
    margin: 20px 0;
    text-align: center;
  }

  .ticket-card__price--early {
    font-size: 55px;
  }

  .ticket-card__price--late {
    font-size: 40px;
    margin-top: 5px;
  }

  .ticket-card__price--early .ticket-card__period,
  .ticket-card__price--late .ticket-card__period {
    font-size: 0.35em;
  }

  .ticket-card__description {
    margin: -5px 10px 18px;
  }

  .ticket-card__description-text {
    font-size: 0.8rem;
  }

  .ticket-card__button {
    flex: 0 0 auto;
    margin-bottom: 0;
    width: 100%;
    font-size: 1em;
    padding: 12px 24px;
  }

  .ticket-card__back-close {
    top: -0.7rem;
    left: -0.4rem;
  }

  .ticket-card__icon.icon--qr::after {
    right: 7px;
    font-size: 0.4em;
  }
}

@media (min-width: 768px) {
  .tickets__tabs {
    display: none;
  }

  .tickets__content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .tickets__group {
    display: block;
  }

  .tickets {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .tickets__separator {
    width: 100%;
    height: 1px;
    margin: 3rem 0;
  }

  .tickets--online {
    --ticket-card-width: calc((100% - 2.5rem) / 3);
  }

  .tickets--online .ticket-card {
    flex: 0 0 var(--ticket-card-width);
    max-width: var(--ticket-card-width);
  }

  .ticket-card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .ticket-card--featured {
    margin: -10px;
  }

  .ticket-card__inner {
    padding: 0 1.5em;
    min-height: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .ticket-card__head {
    text-align: left;
    padding: 25px 7px;
    border-bottom: 1px solid var(--color-secondary);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .ticket-card__icon {
    float: none;
    margin: 0;
  }

  .ticket-card__title {
    font-size: 1.5em;
  }

  .ticket-card__price {
    font-size: 70px;
    margin: 20px 0;
  }

  .ticket-card__price--early {
    font-size: 70px;
  }

  .ticket-card__price--late {
    font-size: 50px;
  }

  .ticket-card__button {
    width: 100%;
    margin-bottom: 30px;
  }
}

/* ==========================================================================
   Partners Placeholder
   ========================================================================== */

.embla--partners .embla__slide {
  padding: 0 1rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  height: 120px;
}

@media (max-width: 767px) {
  .embla--partners .embla__slide {
    flex: 0 0 50%;
    padding: 0 0.25rem;
  }

  .partner-logo {
    padding: 0.5rem;
  }
}

.partner-logo__image {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  max-width: 200px;
}

.partner-logo__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.partner-logo__image a {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .embla--partners .embla__slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 1rem;
  }
}

@media (min-width: 1024px) {
  .embla--partners .embla__slide {
    flex: 0 0 calc(100% / 4);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font: inherit;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.cta-back {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.cta-back__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.cta-back__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.cta-back__icon.icon--arrow::before {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cta-back__button:hover .cta-back__icon {
  transform: translateX(5px);
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: 2rem 0;
}

.error-404__number {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--color-primary);
  text-shadow: 3px 3px 0 var(--color-secondary);
}

@media (min-width: 768px) {
  .error-404 {
    padding: 4rem 0;
  }

  .error-404__number {
    font-size: 12rem;
  }
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 30px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #ccc;
  color: #fff;
  border-radius: 4px;
  z-index: 40;
  transition: transform 0.15s linear, opacity 0.3s ease-out, visibility 0.3s ease-out;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.icon--arrow::before {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
}

.icon--arrow-up.icon--arrow::before {
  transform: rotate(-90deg);
}

.scroll-to-top--visible {
  opacity: 0.5;
  visibility: visible;
}

.scroll-to-top--visible:hover {
  opacity: 1;
  transform: translateY(-10px);
}

@media (max-width: 767px) {
  .scroll-to-top {
    bottom: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .scroll-to-top.icon--arrow::before {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: auto;
  padding: 2rem 1rem;
  background: var(--color-dark);
  color: var(--color-text-light);
}

.footer__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__phone-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer__links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__phone:hover,
.footer__phone:focus,
.footer__link:hover,
.footer__link:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer__separator {
  color: var(--color-text-light);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .footer__phone-wrapper {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767px) {
  .footer__container {
    gap: 0.5rem;
  }

  .footer__phone-wrapper {
    order: -1;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer__separator {
    display: none;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Embla Carousel
   ========================================================================== */

.embla {
  overflow: hidden;
  position: relative;
}

.embla__container {
  display: flex;
  touch-action: pan-y;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 1rem 1rem;
}

.embla__prev,
.embla__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.embla__prev:hover,
.embla__next:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.embla__prev:active,
.embla__next:active {
  transform: translateY(-50%) scale(0.95);
}

.embla__prev {
  left: 0.5rem;
}

.embla__next {
  right: 0.5rem;
}

.embla__prev svg,
.embla__next svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .embla__slide {
    flex: 0 0 calc(100% / 3);
    padding: 1rem 0.75rem;
  }

  .embla__prev {
    left: 1rem;
  }

  .embla__next {
    right: 1rem;
  }
}

@media (min-width: 1024px) {
  .embla__slide {
    padding: 1rem 1rem;
  }
}

/* ==========================================================================
   Universal Accordion
   ========================================================================== */

.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.accordion__item:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-secondary);
}

.accordion__toggle {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.accordion__toggle:hover,
.accordion__toggle:focus,
.accordion__toggle[aria-expanded="true"] {
  color: var(--color-primary);
}

.accordion__toggle:focus,
.accordion__toggle:focus-visible {
  outline: none;
}

@supports not selector(:has(*)) {
  .accordion__toggle:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
  }
}

.accordion__toggle-text {
  flex: 1;
  line-height: 1.5;
}

.accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.accordion__icon::before {
  width: 16px;
  height: 2px;
}

.accordion__icon::after {
  width: 2px;
  height: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion__toggle[aria-expanded="true"] .accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--color-bg-alt);
}

.accordion__content-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text);
  line-height: 1.6;
}

.accordion__content-inner p {
  margin: 0;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .accordion {
    gap: 1.25rem;
  }

  .accordion__toggle {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
  }

  .accordion__content-inner {
    padding: 0 2rem 1.5rem;
    font-size: 1.0625rem;
  }

  .accordion__icon {
    width: 28px;
    height: 28px;
  }

  .accordion__icon::before {
    width: 18px;
  }

  .accordion__icon::after {
    height: 18px;
  }

  .accordion--speaker .accordion__toggle {
    padding: 1.75rem 2rem;
    font-size: 1.125rem;
  }

  .accordion--speaker .accordion__content-inner {
    padding: 0 2rem 2rem;
  }
}

/* Accordion Variant - Speaker */
.accordion--speaker {
  border: 4px solid var(--color-secondary);
  border-radius: 12px;
  background: var(--color-bg-alt);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  gap: 0;
  margin-top: 3rem;
  transition: box-shadow 0.3s ease;
}

.accordion--speaker:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accordion--speaker .accordion__item {
  border: none;
  border-radius: 0;
  background: var(--color-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.accordion--speaker .accordion__item:last-child {
  border-bottom: none;
}

.accordion--speaker .accordion__item:hover {
  background: rgba(81, 89, 52, 0.9);
}

.accordion--speaker .accordion__toggle {
  padding: 1.5rem;
  font-size: 1rem;
  color: var(--color-text-light);
}

.accordion--speaker .accordion__toggle:hover,
.accordion--speaker .accordion__toggle:focus,
.accordion--speaker .accordion__toggle[aria-expanded="true"] {
  color: var(--color-primary);
}

.accordion--speaker .accordion__content {
  background: var(--color-bg);
}

.accordion--speaker .accordion__content-inner {
  padding: 0 1.5rem 1.5rem;
}

/* ==========================================================================
   Speaker CTA Button
   ========================================================================== */

.speaker-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.speaker-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(242, 157, 82, 0.3);
  border: 2px solid var(--color-primary);
}

.speaker-cta__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.speaker-cta__button:hover::before {
  left: 100%;
}

.speaker-cta__button:hover,
.speaker-cta__button:focus {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 89, 52, 0.4);
  outline: none;
}

.speaker-cta__button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(242, 157, 82, 0.3);
}

.speaker-cta__button-text {
  position: relative;
  z-index: 1;
}

.speaker-cta__button-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.speaker-cta__button-icon.icon--arrow::before {
  width: 100%;
  height: 100%;
}

.speaker-cta__button:hover .speaker-cta__button-icon {
  transform: translateX(5px);
}

@media (min-width: 768px) {
  .speaker-cta__button {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
  }

  .speaker-cta__button-icon {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   FAQ (using accordion styles)
   ========================================================================== */

.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq__item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.faq__item:has(.faq__question:focus) {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.faq__question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.faq__question:hover,
.faq__question:focus,
.faq__question[aria-expanded="true"] {
  color: var(--color-primary);
}

.faq__question:focus,
.faq__question:focus-visible {
  outline: none;
}

@supports not selector(:has(*)) {
  .faq__question:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
  }
}

.faq__question-text {
  flex: 1;
  line-height: 1.5;
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__icon::before {
  width: 16px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq__question[aria-expanded="true"] .faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.2);
}

.faq__answer-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.faq__answer-content p {
  margin: 0;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .faq {
    gap: 1.25rem;
  }

  .faq__question {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
  }

  .faq__answer-content {
    padding: 0 2rem 1.5rem;
    font-size: 1.0625rem;
  }

  .faq__icon {
    width: 28px;
    height: 28px;
  }

  .faq__icon::before {
    width: 18px;
  }

  .faq__icon::after {
    height: 18px;
  }
}

/* ==========================================================================
   Schedule Section
   ========================================================================== */

#schedule {
  position: relative;
  overflow: hidden;
  padding-bottom: 6rem;
}

#schedule .schedule__paw {
  position: absolute;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  background-color: var(--color-secondary);
  transition: transform 0.1s ease-out;
  mask-image: var(--icon-paw-mask);
  -webkit-mask-image: var(--icon-paw-mask);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.schedule {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

#schedule .schedule__paw--1 {
  top: 10%;
  left: 4%;
  width: 50px;
  height: 50px;
  transform: rotate(-15deg);
}

#schedule .schedule__paw--2 {
  top: 15%;
  right: 6%;
  width: 65px;
  height: 65px;
  transform: rotate(20deg);
}

#schedule .schedule__paw--3 {
  top: 40%;
  left: 8%;
  width: 45px;
  height: 45px;
  transform: rotate(-30deg);
}

#schedule .schedule__paw--4 {
  bottom: 18%;
  right: 4%;
  width: 60px;
  height: 60px;
  transform: rotate(25deg);
}

#schedule .schedule__paw--5 {
  bottom: 15%;
  left: 3%;
  width: 55px;
  height: 55px;
  transform: rotate(10deg);
}

#schedule .schedule__paw--6 {
  top: 45%;
  right: 10%;
  width: 40px;
  height: 40px;
  transform: rotate(-25deg);
}

.schedule__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.schedule__tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.schedule__tab:hover,
.schedule__tab:focus {
  color: var(--color-primary);
  outline: none;
}

.schedule__tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

@media (max-width: 767px) {
  .schedule__content {
    min-height: auto;
  }

  .schedule__day {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0.3s;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .schedule__day--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0s;
    pointer-events: auto;
    position: relative;
  }
}

.tickets__tabs {
  border-bottom: 2px solid rgba(255, 255, 255, 1);
}

.schedule__content {
  gap: 2rem;
  position: relative;
  z-index: 1;
  min-height: 0;
}

.schedule__day-title {
  display: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  text-align: center;
}

.schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-left: 0.8rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  position: relative;
  color: var(--color-text-light);
  line-height: 1.6;
  cursor: default;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.schedule__item-main {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

.schedule__item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.schedule__item::before {
  content: '';
  position: absolute;
  left: 4.5em;
  top: 1.1em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background-color: var(--color-secondary);
  border: 2px solid var(--color-primary);
  transform: translateY(-50%);
}

.schedule__time {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  min-width: 60px;
  flex-shrink: 0;
}

.schedule__event {
  flex: 1;
}

.schedule__speakers {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
  opacity: 0.8;
  margin-left: calc(60px + 2rem);
  padding-top: 0.25rem;
}

.schedule__speakers-label {
  font-weight: 600;
  color: var(--color-primary);
}

.schedule__speakers-names {
  font-style: italic;
}

@media (min-width: 768px) {
  .schedule__tabs {
    display: none;
  }

  .schedule__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .schedule__day {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .schedule__content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 5.8rem;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
    margin: 0 -1.5rem;
  }

  .tabs-panel {
    display: block;
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .schedule__day-title {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .schedule__list {
    gap: 1.25rem;
  }

  .schedule__item {
    padding-left: 1rem;
    gap: 0;
  }

  .schedule__item-main {
    gap: 2rem;
  }

  .schedule__speakers {
    margin-left: calc(70px + 2rem);
    font-size: 0.8125rem;
  }

  .schedule__item::before {
    width: 14px;
    height: 14px;
    left: 5em;
    border-width: 3px;
    border-radius: 4px;
    top: 1.17em;
  }

  .schedule__time {
    min-width: 70px;
    font-size: 1.125rem;
  }

  .schedule__event {
    font-size: 1.0625rem;
  }

  #schedule .schedule__paw--1 {
    top: 8%;
    left: 3%;
    width: 60px;
    height: 60px;
  }

  #schedule .schedule__paw--2 {
    top: 12%;
    right: 5%;
    width: 70px;
    height: 70px;
  }

  #schedule .schedule__paw--3 {
    top: 38%;
    left: 6%;
    width: 55px;
    height: 55px;
  }

  #schedule .schedule__paw--4 {
    bottom: 15%;
    right: 3%;
    width: 65px;
    height: 65px;
  }

  #schedule .schedule__paw--5 {
    bottom: 12%;
    left: 2%;
    width: 55px;
    height: 55px;
  }

  #schedule .schedule__paw--6 {
    top: 42%;
    right: 8%;
    width: 45px;
    height: 45px;
  }
}

@media (min-width: 1024px) {
  .schedule__content {
    gap: 4rem;
  }

  .schedule__day-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Become Speaker Section - Sequence Visualization
   ========================================================================== */

.speaker-sequence {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes sequenceAppearMobile {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

@keyframes sequenceAppearDesktop {
  from {
    opacity: 0;
    transform: translateX(-30px) translateY(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.speaker-sequence__step {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-secondary);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateX(0) translateY(0);
}

.speaker-sequence--visible .speaker-sequence__step {
  animation: sequenceAppearMobile 0.6s ease-out forwards;
}

.speaker-sequence--animated .speaker-sequence__step {
  animation: none;
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.speaker-sequence--visible .speaker-sequence__step:nth-child(1) {
  animation-delay: 0.1s;
}

.speaker-sequence--visible .speaker-sequence__step:nth-child(3) {
  animation-delay: 0.3s;
}

.speaker-sequence--visible .speaker-sequence__step:nth-child(5) {
  animation-delay: 0.5s;
}

.speaker-sequence--visible .speaker-sequence__step:nth-child(7) {
  animation-delay: 0.7s;
}

.speaker-sequence__step:hover {
  transform: translateX(0) translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.speaker-sequence__step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(242, 157, 82, 0.3);
}

.speaker-sequence__step-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.speaker-sequence__step-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
}

.speaker-sequence__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: -0.5rem auto;
  opacity: 0;
}

.speaker-sequence--visible .speaker-sequence__arrow {
  animation: sequenceAppearMobile 0.4s ease-out forwards;
}

.speaker-sequence--animated .speaker-sequence__arrow {
  animation: none;
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.speaker-sequence--visible .speaker-sequence__arrow:nth-child(2) {
  animation-delay: 0.2s;
}

.speaker-sequence--visible .speaker-sequence__arrow:nth-child(4) {
  animation-delay: 0.4s;
}

.speaker-sequence--visible .speaker-sequence__arrow:nth-child(6) {
  animation-delay: 0.6s;
}

.speaker-sequence__arrow.icon--arrow::before {
  width: 100%;
  height: 100%;
  transform: rotate(90deg);
}

@media (min-width: 768px) {
  .speaker-sequence {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
  }

  .speaker-sequence__step {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1rem;
    display: flex;
    align-items: stretch;
    position: relative;
  }

  .speaker-sequence__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .speaker-sequence__step-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .speaker-sequence__step-text {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .speaker-sequence--visible .speaker-sequence__step {
    animation: sequenceAppearDesktop 0.6s ease-out forwards;
  }

  .speaker-sequence--animated .speaker-sequence__step {
    animation: none;
    opacity: 1;
    transform: translateX(0) translateY(0);
  }

  .speaker-sequence--visible .speaker-sequence__arrow {
    animation: sequenceAppearDesktop 0.4s ease-out forwards;
  }

  .speaker-sequence--animated .speaker-sequence__arrow {
    animation: none;
    opacity: 1;
    transform: translateX(0) translateY(0);
  }

  .speaker-sequence__step {
    transform: translateX(0) translateY(0);
  }

  .speaker-sequence__step:hover {
    transform: translateX(0) translateY(-5px);
  }

  .speaker-sequence__arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    align-self: center;
    margin: 0 -12px;
  }

  .speaker-sequence__arrow.icon--arrow::before {
    transform: rotate(0deg);
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .speaker-sequence {
    gap: 0.75rem;
  }

  .speaker-sequence__step {
    padding: 2rem 1.25rem;
  }

  .speaker-sequence__step-number {
    width: 55px;
    height: 55px;
    font-size: 1.625rem;
    top: -27.5px;
  }

  .speaker-sequence__step-text {
    font-size: 1rem;
  }

  .speaker-sequence__arrow {
    width: 56px;
    height: 56px;
    margin: 0 -14px;
  }

  .speaker-sequence__arrow.icon--arrow::before {
    width: 100%;
    height: 100%;
  }
}

/* ==========================================================================
   Masterclasses Grid
   ========================================================================== */

.masterclasses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.masterclass-item {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  padding: 0;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.masterclass-item__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.masterclass-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.masterclass-item__info {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
  transition: padding-bottom 0.3s ease, opacity 0.3s ease-out, visibility 0.3s ease-out;
  margin-bottom: 0;
}

.masterclass-item__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.masterclass-item__prices {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.masterclass-item__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.masterclass-item__price-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.masterclass-item__price-value {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.masterclass-item__price--late .masterclass-item__price-value {
  color: var(--color-text-light);
  opacity: 0.8;
}

.masterclass-item__toggle {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  min-height: 400px;
}

.masterclass-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.8);
  flex: 0 0 auto;
}

.masterclass-item__content[aria-hidden="false"] {
  max-height: 2000px;
}

.masterclass-item__content-inner {
  padding: 1.5rem;
  color: var(--color-text-light);
  position: relative;
}

.masterclass-item__close {
  display: none;
}

.masterclass-item__content-title {
  display: none;
}

.masterclass-item__content-text {
  margin-bottom: 1.5rem;
}

.masterclass-item__content-text p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.masterclass-item__content-text p:last-child {
  margin-bottom: 0;
}

.masterclass-item__button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.masterclass-item__button:hover,
.masterclass-item__button:focus {
  background: var(--color-secondary);
  outline: none;
}

.masterclass-item__button:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .masterclasses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .masterclass-item {
    min-height: 400px;
    display: block;
    height: 100%;
  }

  .masterclass-item__toggle {
    min-height: 400px;
    height: 100%;
    cursor: pointer;
    pointer-events: auto;
  }

  .masterclass-item__image,
  .masterclass-item__image img {
    height: 100%;
  }

  .masterclass-item__content {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    max-height: none !important;
  }

  .masterclass-item__content[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .masterclass-item:has(.masterclass-item__content[aria-hidden="false"]) .masterclass-item__info {
    opacity: 0;
    visibility: hidden;
  }

  .masterclass-item__content-inner {
    padding: 2rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .masterclass-item__content-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0 0 1.5rem;
    flex-shrink: 0;
  }

  .masterclass-item__content-text {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .masterclass-item__content-text::-webkit-scrollbar {
    width: 6px;
  }

  .masterclass-item__content-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .masterclass-item__content-text::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
  }

  .masterclass-item__content-text::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
  }

  .masterclass-item__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-light);
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .masterclass-item__close:hover,
  .masterclass-item__close:focus {
    color: var(--color-primary);
    transform: scale(1.1);
    outline: none;
  }

  .masterclass-item__close svg {
    width: 24px;
    height: 24px;
  }

  .masterclass-item__content-text p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .masterclass-item__content-text p:last-child {
    margin-bottom: 0;
  }

  .masterclass-item__button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    flex-shrink: 0;
  }

  .masterclass-item__info {
    padding: 1rem;
  }

  .masterclass-item:hover .masterclass-item__info {
    padding-bottom: 1.5rem;
  }

  .masterclass-item__title,
  .masterclass-item__content-title {
    padding-top: 0;
    margin-top: 0;
  }

  .masterclass-item__title {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .masterclasses-grid {
    gap: 1.5rem;
  }

  .masterclass-item {
    min-height: 450px;
    height: 100%;
  }

  .masterclass-item__toggle {
    min-height: 450px;
    height: 100%;
  }

  .masterclass-item__image,
  .masterclass-item__image img {
    height: 100%;
  }

  .masterclass-item__info {
    padding: 1.25rem;
  }

  .masterclass-item:hover .masterclass-item__info {
    padding-bottom: 2rem;
  }

  .masterclass-item__title,
  .masterclass-item__content-title {
    padding-top: 0;
    margin-top: 0;
  }

  .masterclass-item__title {
    font-size: 1.125rem;
  }

  .masterclass-item__content-title {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   Print styles.
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* Payment Modal */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-modal[inert] {
  pointer-events: none;
}

.payment-modal--open {
  opacity: 1;
  visibility: visible;
}

.payment-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.payment-modal__container {
  position: relative;
  width: 90%;
  max-width: 500px;
  z-index: 1001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.payment-modal--open .payment-modal__container {
  transform: scale(1);
}

.payment-modal__content {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.payment-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.payment-modal__close:hover {
  color: var(--color-primary);
}

.payment-modal__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.payment-modal__summary {
  background: var(--color-bg-alt);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-modal__summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.payment-modal__summary-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.7;
}

.payment-modal__summary-value {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

.payment-modal__summary-value--price {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.payment-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.payment-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-modal__label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.payment-modal__input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.payment-modal__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.payment-modal__input--error {
  border-color: #dc3545;
}

.payment-modal__input--error:focus {
  border-color: #dc3545;
}

/* Error message styling */
.payment-modal__error {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #c33;
}

.payment-modal__error-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.payment-modal__error-text {
  flex: 1;
  line-height: 1.5;
}

/* Phone mask underscore styling */
.payment-modal__input.phone-mask {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.payment-modal__input.phone-mask::placeholder {
  color: var(--color-text);
  opacity: 0.4;
}

.payment-modal__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.payment-modal__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-modal__checkbox-text {
  position: relative;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
  padding-left: 2rem;
  flex: 1;
}

.payment-modal__checkbox-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg);
  transition: all 0.2s ease;
}

.payment-modal__checkbox:checked + .payment-modal__checkbox-text::before {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.payment-modal__checkbox-text::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.375rem;
  width: 0.375rem;
  height: 0.625rem;
  border: solid var(--color-text-light);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 0.2s ease;
}

.payment-modal__checkbox:checked + .payment-modal__checkbox-text::after {
  opacity: 1;
}

.payment-modal__checkbox:focus-visible + .payment-modal__checkbox-text::before {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.payment-modal__checkbox-label:hover .payment-modal__checkbox-text::before {
  border-color: var(--color-primary);
}

.payment-modal__submit {
  margin-top: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .payment-modal__content {
    padding: 1.5rem;
  }

  .payment-modal__title {
    font-size: 1.25rem;
  }
}

/* Payment Success Page */
main:has(#payment-success) {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#payment-success {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 0;
}

#payment-success .section__container {
  text-align: center;
}

#payment-success .section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

