@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Noto+Sans:wght@300;400;600;700&display=swap');

:root {
  --bg-purple: #2a1245;
  --bg-purple-dark: #1a0a2e;
  --bg-black: #0d0d0d;
  --text-white: #ffffff;
  --fuchsia: #ff00aa;
  --fuchsia-light: #ff44cc;
  --fuchsia-dark: #cc0088;
  --gradient-border: linear-gradient(135deg, #ff00aa, #ff66cc, #cc00ff, #ff00aa);
  --shadow-glow: 0 8px 32px rgba(255, 0, 170, 0.25);
  --shadow-deep: 0 12px 40px rgba(0, 0, 0, 0.5);
  --font-heading: 'EB Garamond', 'GFS Didot', Georgia, serif;
  --font-body: 'Noto Sans', sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-purple);
  color: var(--text-white);
  line-height: 1.7;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--fuchsia-light);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--text-white);
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--bg-black);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-border);
  margin: 0.75rem auto 0;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.5em;
  line-height: 0.8;
  padding-right: 0.12em;
  padding-top: 0.05em;
  color: var(--fuchsia);
  font-weight: 700;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 10, 46, 0.97);
  border-bottom: 2px solid var(--fuchsia);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  flex-wrap: nowrap;
}

.logo-link {
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.85rem;
}

.header-contacts p,
.header-contacts a,
.header-contacts span {
  white-space: nowrap;
  color: var(--text-white);
  font-size: 0.85rem;
}

.header-contacts a:hover {
  color: var(--fuchsia);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fuchsia);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--fuchsia);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--fuchsia);
  transition: 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.mobile-contacts {
  display: none;
}

/* BANNER */
.page-banner {
  position: relative;
  width: 100%;
  height: clamp(220px, 40vw, 480px);
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 10, 46, 0.4), rgba(26, 10, 46, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner h1 {
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  padding: 0 1rem;
}

/* STRENGTHS */
.strengths-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.strength-card {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 2rem 1.5rem;
  background: var(--bg-black);
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow-deep);
  transition: transform 0.3s, box-shadow 0.3s;
}

.strength-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: var(--gradient-border);
  z-index: -1;
}

.strength-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--bg-black);
  z-index: -1;
}

.strength-card:nth-child(1) { transform: translateY(0); }
.strength-card:nth-child(2) { transform: translateY(35px); }
.strength-card:nth-child(3) { transform: translateY(10px); }
.strength-card:nth-child(4) { transform: translateY(45px); }

.strength-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-glow), var(--shadow-deep);
}

.strength-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--fuchsia);
}

.strength-card h3 {
  margin-bottom: 0.75rem;
  color: var(--fuchsia-light);
}

.strength-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* SERVICE CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-black);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--shadow-deep);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--fuchsia);
}

.service-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  color: var(--fuchsia-light);
  margin-bottom: 0.75rem;
}

.service-card-body p {
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--fuchsia);
  color: var(--text-white);
  border: 2px solid var(--fuchsia);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-family: var(--font-body);
}

.btn:hover {
  background: transparent;
  color: var(--fuchsia);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--fuchsia);
}

.btn-outline:hover {
  background: var(--fuchsia);
  color: var(--text-white);
}

/* ADVANTAGES / STATS */
.advantages-block {
  background: var(--bg-black);
  border: 2px solid var(--fuchsia);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-glow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 0, 170, 0.3);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--fuchsia);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* FORMS */
.form-section {
  background: var(--bg-black);
  border-radius: 16px;
  padding: 2.5rem;
  border: 2px solid var(--fuchsia);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 0, 170, 0.4);
  border-radius: 8px;
  background: var(--bg-purple-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--fuchsia);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(0, 200, 100, 0.15);
  border: 1px solid #00c864;
  color: #7dffb0;
}

.form-message.error {
  display: block;
  background: rgba(255, 50, 50, 0.15);
  border: 1px solid #ff5050;
  color: #ffaaaa;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid rgba(255, 0, 170, 0.3);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-black);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--fuchsia);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ABOUT PAGE */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--fuchsia);
}

.mission-sticks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.mission-stick {
  flex: 1 1 200px;
  padding: 1.5rem;
  background: var(--bg-black);
  border-left: 4px solid var(--fuchsia);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-deep);
}

.mission-stick h3 {
  color: var(--fuchsia-light);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fuchsia);
  border: 3px solid var(--bg-purple);
  transform: translateX(-6.5px);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--fuchsia);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* SERVICES DETAIL */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  background: var(--bg-black);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 0, 170, 0.3);
}

.service-detail-img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--fuchsia);
  margin: 0.75rem 0;
}

.service-guarantee {
  background: rgba(255, 0, 170, 0.1);
  border-left: 3px solid var(--fuchsia);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.advantages-list li {
  padding: 1rem 1.25rem;
  background: var(--bg-black);
  border-radius: 8px;
  border: 1px solid rgba(255, 0, 170, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.advantages-list li::before {
  content: '✦';
  color: var(--fuchsia);
  flex-shrink: 0;
}

/* BONUS PROGRAM */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.bonus-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-black);
  border-radius: 12px;
  border: 2px solid rgba(255, 0, 170, 0.3);
}

.bonus-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block {
  background: var(--bg-black);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid var(--fuchsia);
}

.contact-info-block p,
.contact-info-block a {
  margin-bottom: 1rem;
  display: block;
  color: var(--text-white);
}

.contact-info-block a:hover {
  color: var(--fuchsia);
}

/* LEGAL */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin: 2rem 0 1rem;
  color: var(--fuchsia-light);
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* FOOTER */
.site-footer {
  background: var(--bg-black);
  border-top: 3px solid var(--fuchsia);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--fuchsia);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-white);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--fuchsia);
}

.footer-contacts {
  text-align: right;
  font-size: 0.9rem;
}

.footer-contacts p,
.footer-contacts a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.footer-social a {
  color: var(--fuchsia);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 0, 170, 0.2);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  color: var(--fuchsia-light);
}

.text-block {
  max-width: 900px;
  margin: 0 auto 2rem;
}

.text-block p {
  margin-bottom: 1rem;
}

.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .header-contacts {
    display: none;
  }

  .mobile-contacts {
    display: block;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 0, 170, 0.3);
    margin-top: 1rem;
  }

  .mobile-contacts p,
  .mobile-contacts a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-white);
    white-space: nowrap;
  }

  .burger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bg-purple-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    transition: right 0.3s;
    z-index: 1001;
    border-left: 2px solid var(--fuchsia);
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-overlay.open {
    display: block;
  }

  .strength-card:nth-child(n) {
    transform: none;
  }

  .about-content,
  .service-detail-card,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contacts {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 0, 170, 0.2);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }

  .strengths-grid {
    flex-direction: column;
    align-items: center;
  }

  .strength-card {
    max-width: 100%;
  }
}

@media (min-width: 1025px) {
  .header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
  }
}
