@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap");

:root {
  --font-main: "Lato", sans-serif;
  --font-heading: "Cinzel Decorative", serif;

  --text-dark: #3a3335;
  --text-light: #6b6264;
  --text-muted: #9e9395;

  --bg-white: #ffffff;

  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.04);
  --shadow-float-hover: 0 30px 60px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(var(--primary-rgb, 197, 168, 128), 0.15);

  --radius-huge: 50px;
  --radius-pill: 100px;

  --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-soft);
  color: var(--text-light);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%
    );
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-divider {
  max-width: 800px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--text-muted),
    transparent
  );
  position: relative;
  opacity: 0.8;
}

.section-divider::after {
  content: "•";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-soft);
  padding: 0 15px;
  color: var(--primary);
  font-size: 1.2rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--primary);
  letter-spacing: 2px;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: center;
  margin: 40px 0 25px;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.subsection-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.note {
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 45px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-main);
}

.btn--primary {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-float);
  border: 1px solid black;
}

.btn--primary:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float-hover);
  color: var(--primary-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.btn--secondary:hover {
  background: var(--text-dark);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

/* Header */
.header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

.header::before {
  display: none;
}

.header__intro {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-huge);
  padding: 80px 60px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 1);
}

.header__logo {
  max-width: 320px;
  width: 100%;
}

.header__contacts {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  box-shadow: var(--shadow-float);
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: 1px;
  transition: all var(--transition-smooth);
}

.contact-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float-hover);
  color: var(--primary);
}

.contact-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Tabs */
.tabs__header {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 15px 40px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--bg-white);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-float);
  font-weight: 700;
  transform: translateY(-5px);
}

.tab-panel,
.sub-tab-panel {
  display: none;
  animation: floatUp 0.8s var(--transition-smooth) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.tab-panel.active,
.sub-tab-panel.active {
  display: block;
}

@keyframes floatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-tabs__header {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.sub-tab-btn {
  padding: 10px 25px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
}

.sub-tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-smooth);
}

.sub-tab-btn:hover {
  color: var(--text-dark);
}

.sub-tab-btn.active {
  color: var(--primary);
}

.sub-tab-btn.active::after {
  width: 80%;
}

/* Price Table */
.price-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 15px;
}

.price-table tr {
  background: var(--bg-white);
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-huge);
  transition: all var(--transition-smooth);
}

.price-table tr:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-float-hover);
}

.price-table td {
  padding: 25px 40px;
}

.price-table td:first-child {
  border-radius: var(--radius-huge) 0 0 var(--radius-huge);
  color: var(--text-dark);
  font-size: 1rem;
}

.price-table td:last-child {
  border-radius: 0 var(--radius-huge) var(--radius-huge) 0;
  text-align: right;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

/* Accordion */
.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion-item {
  background: var(--bg-white);
  border-radius: var(--radius-huge);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-smooth);
}

.accordion-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float-hover);
}

.accordion-header {
  width: 100%;
  padding: 25px 30px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  transition: color var(--transition-smooth);
}

.accordion-header:hover {
  color: var(--primary);
}

.accordion-header::after {
  content: "";
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform var(--transition-smooth);
  margin-right: 10px;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(-135deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-content p,
.accordion-content ul {
  padding: 0 40px 35px;
  font-size: 1.1rem;
}

.accordion-content ul {
  padding-left: 60px;
}

.education__action {
  text-align: center;
  margin-top: 80px;
}

/* Slider */
.slider__container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.slider__wrapper {
  display: flex;
  gap: 50px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px;
  scrollbar-width: none;
}

.slider__wrapper::-webkit-scrollbar {
  display: none;
}

.slider__item {
  flex: 0 0 calc(33.333% - 34px);
  scroll-snap-align: center;
  aspect-ratio: 4/5;
  border-radius: var(--radius-huge);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transition: all var(--transition-smooth);
  position: relative;
}

.slider__item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-float-hover);
}

.slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.slider__item:hover::after {
  opacity: 1;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-smooth);
  color: var(--primary);
}

.slider__btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-float-hover);
  background: var(--primary);
  color: #fff;
}

.slider__btn--prev {
  left: -25px;
}

.slider__btn--next {
  right: -25px;
}

.slider__btn::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.slider__btn--prev::after {
  transform: rotate(135deg);
  margin-left: 4px;
}

.slider__btn--next::after {
  transform: rotate(-45deg);
  margin-right: 4px;
}

/* Footer */
.footer {
  padding: 80px 0 60px;
}

.footer::before {
  display: none;
}

.footer__container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  background: var(--bg-white);
  border-radius: var(--radius-huge);
  padding: 60px;
  box-shadow: var(--shadow-float);
  position: relative;
}

.footer__contacts {
  flex: 1;
  min-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer__name {
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 50px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
}

.footer__icon {
  width: 32px;
  height: 32px;
  opacity: 0.5;
  transition: opacity var(--transition-smooth);
}

.footer__contact-item:hover .footer__icon {
  opacity: 1;
}

.footer__contact-text {
  font-family: var(--font-main);
  font-size: 1rem;
}

.footer__map-wrapper {
  flex: 1.5;
  min-width: 300px;
}

.footer__map {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-huge);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
  .slider__item {
    flex: 0 0 calc(50% - 25px);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .subsection-title {
    font-size: 1.4rem;
    margin: 40px 0 20px;
  }

  .btn {
    padding: 14px 30px;
    font-size: 0.85rem;
  }

  .header__intro {
    padding: 40px 20px;
    border-radius: 30px;
    gap: 30px;
  }

  .header__logo {
    max-width: 220px;
  }

  .header__contacts {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .contact-link {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .tabs__header {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    width: auto;
    flex: 1;
  }

  .price-table td:first-child {
    font-size: 14px;
  }

  .price-table td:last-child {
    font-size: 1.1rem;
  }

  .accordion-header {
    font-size: 16px;
    padding: 25px 30px;
  }

  .slider__btn {
    width: 40px;
    height: 40px;
  }

  .slider__btn--prev {
    left: 5px;
  }
  .slider__btn--next {
    right: 5px;
  }

  .footer__title {
    font-size: 1.8rem;
  }

  .footer__container {
    padding: 40px 20px;
    border-radius: 30px;
  }
}
