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

:root {
  --bg-dark: #0a1628;
  --bg-black: #050a12;
  --text-white: #f5f8fc;
  --text-muted: #b8c5d6;
  --accent-cyan: #00c8e8;
  --accent-cyan-dark: #0099b3;
  --gradient-border: linear-gradient(135deg, #00c8e8, #0066aa, #00e5ff);
  --shadow-deep: 0 12px 40px rgba(0, 200, 232, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #5eeaff;
}

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

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

/* Drop cap */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.5em;
  line-height: 0.8;
  padding-right: 0.08em;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.97);
  border-bottom: 1px solid rgba(0, 200, 232, 0.2);
  height: var(--header-height);
}

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

.header-logo img {
  height: 50px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-nav a {
  color: var(--text-white);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--accent-cyan);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-contacts p,
.header-contacts a {
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-muted);
}

.header-contacts span {
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-muted);
}

.header-contacts a {
  color: var(--accent-cyan);
}

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

.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent-cyan);
  transition: 0.3s;
}

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

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

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

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  padding: 30px 20px;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.mobile-menu nav a {
  color: var(--text-white);
  font-size: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.mobile-contacts {
  border-top: 1px solid rgba(0, 200, 232, 0.2);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-contacts p,
.mobile-contacts a {
  font-size: 15px;
  color: var(--text-muted);
}

/* Banner */
.page-banner {
  position: relative;
  width: 100%;
  height: 480px;
  margin-top: var(--header-height);
  padding: 0;
  overflow: hidden;
}

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

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

.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--text-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  padding: 0 20px;
}

/* Sections */
section {
  padding: 70px 0;
}

section:nth-child(even) {
  background: var(--bg-black);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 17px;
}

/* Strengths - staggered cards */
.strengths-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 20px 0;
}

.strength-card {
  flex: 0 1 220px;
  position: relative;
  padding: 28px 22px;
  background: var(--bg-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
  transition: transform 0.3s ease;
}

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

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

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

.strength-card:hover {
  transform: translateY(-8px) !important;
}

.strength-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

.strength-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-black);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 232, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

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

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

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.service-price {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

.btn-filled {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

.btn-filled:hover {
  background: var(--accent-cyan-dark);
  border-color: var(--accent-cyan-dark);
  color: var(--text-white);
}

/* Advantages / Stats */
.advantages-block {
  background: var(--bg-black);
  border: 1px solid rgba(0, 200, 232, 0.15);
  border-radius: 12px;
  padding: 50px 40px;
}

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

.stat-item {
  text-align: center;
}

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

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.advantages-text {
  columns: 1;
  gap: 30px;
}

.advantages-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* Forms */
.form-section {
  background: var(--bg-black);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid rgba(0, 200, 232, 0.2);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(0, 200, 232, 0.3);
  border-radius: 6px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.15);
}

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

.form-message {
  padding: 14px 18px;
  border-radius: 6px;
  margin-top: 16px;
  display: none;
  font-size: 14px;
}

.form-message.success {
  display: block;
  background: rgba(0, 200, 232, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

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

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

.faq-item {
  border-bottom: 1px solid rgba(0, 200, 232, 0.15);
  margin-bottom: 0;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-cyan);
  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, padding 0.3s;
  color: var(--text-muted);
  font-size: 15px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* About page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.about-img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 200, 232, 0.2);
}

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

.mission-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
}

.mission-sticker {
  flex: 1 1 200px;
  max-width: 280px;
  padding: 30px 24px;
  background: var(--bg-black);
  border: 2px solid var(--accent-cyan);
  border-radius: 8px;
  text-align: center;
  transform: rotate(-1deg);
}

.mission-sticker:nth-child(even) {
  transform: rotate(1deg);
}

.mission-sticker h3 {
  color: var(--accent-cyan);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.mission-sticker p {
  font-size: 14px;
  color: var(--text-muted);
}

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

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

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-dark);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.timeline-item p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 15px;
}

/* Services detail */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--bg-black);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 200, 232, 0.15);
}

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

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-guarantee {
  background: rgba(0, 200, 232, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
}

.benefits-list li {
  padding: 20px;
  background: var(--bg-black);
  border-radius: 8px;
  border: 1px solid rgba(0, 200, 232, 0.15);
}

.benefits-list li strong {
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* Bonus program */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.bonus-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-black);
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 232, 0.2);
}

.bonus-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: rgba(0, 200, 232, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-block h3 {
  color: var(--accent-cyan);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.contact-info-block p,
.contact-info-block a {
  margin-bottom: 12px;
  display: block;
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.contact-links a {
  padding: 10px 20px;
  border: 1px solid var(--accent-cyan);
  border-radius: 6px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--bg-black);
  border-top: 1px solid rgba(0, 200, 232, 0.2);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  max-width: 60px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 15px;
}

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

.footer-contacts p,
.footer-contacts a {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.footer-legal {
  border-top: 1px solid rgba(0, 200, 232, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-company-info {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Legal pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--accent-cyan);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 16px;
  color: var(--text-white);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content ul {
  margin: 16px 0 16px 24px;
  color: var(--text-muted);
}

.legal-content ul li {
  margin-bottom: 8px;
}

/* Text content blocks */
.text-block {
  max-width: 900px;
  margin: 0 auto;
}

.text-block p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 16px;
}

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

  .burger-btn {
    display: flex;
  }

  .header-nav {
    display: none;
  }

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

  .strength-card {
    transform: none !important;
    width: 100%;
    max-width: 400px;
  }

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

@media (max-width: 768px) {
  .page-banner {
    height: 320px;
  }

  section {
    padding: 50px 0;
  }

  .form-section {
    padding: 24px;
  }

  .advantages-block {
    padding: 30px 20px;
  }

  .service-detail-card {
    padding: 24px;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
}
