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

:root {
  --bg-dark: #0a1628;
  --bg-black: #050a12;
  --text-white: #f5f8fc;
  --accent: #4fc3f7;
  --accent-dark: #0288d1;
  --gradient-border: linear-gradient(135deg, #4fc3f7, #0288d1, #81d4fa);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --header-h: 88px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.7;
  min-height: 100vh;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: #81d4fa; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.25;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Drop cap */
.drop-cap::first-letter {
  float: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6em;
  line-height: 0.85;
  padding-right: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 10, 18, 0.96);
  border-bottom: 1px solid rgba(79, 195, 247, 0.25);
  backdrop-filter: blur(8px);
}

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

.header-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

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

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  white-space: nowrap;
}

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

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

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

.header-contacts p, .header-contacts a {
  margin: 0;
  white-space: nowrap;
}

.header-contacts p { color: var(--text-white); }
.header-contacts a { color: var(--accent); }

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

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

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-black);
  padding: 2rem;
  z-index: 999;
  overflow-y: auto;
}

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

.mobile-menu ul { list-style: none; }
.mobile-menu li { margin-bottom: 1rem; }
.mobile-menu a { color: var(--text-white); font-size: 1.2rem; font-weight: 600; }

.mobile-contacts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(79, 195, 247, 0.3);
}

.mobile-contacts p, .mobile-contacts a { display: block; margin-bottom: 0.75rem; }

/* Banner */
.page-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 45vw, 520px);
  overflow: hidden;
  padding: 0;
}

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

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,10,18,0.35), rgba(10,22,40,0.75));
}

.banner-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

.banner-title h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  max-width: 900px;
}

/* Sections */
section { padding: 4.5rem 0; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

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

/* Strengths - staggered horizontal cards */
.strengths-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1rem 0;
}

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

.strength-card:nth-child(1) { transform: translateY(-24px); }
.strength-card:nth-child(2) { transform: translateY(8px); }
.strength-card:nth-child(3) { transform: translateY(-12px); }
.strength-card:nth-child(4) { transform: translateY(16px); }
.strength-card:nth-child(5) { transform: translateY(-8px); }

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

.strength-card:hover { transform: translateY(-6px) scale(1.02); }

.strength-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

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

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

.service-card {
  background: var(--bg-black);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(79, 195, 247, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(79, 195, 247, 0.15);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card-body { padding: 1.5rem; }

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.75rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.25s;
  text-align: center;
}

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

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

.btn-filled:hover {
  background: #81d4fa;
  border-color: #81d4fa;
}

/* Advantages block */
.advantages-block {
  background: var(--bg-black);
  padding: 3rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

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

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

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label { font-size: 0.95rem; opacity: 0.85; }

/* Forms */
.form-section {
  background: var(--bg-black);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid rgba(79, 195, 247, 0.35);
  border-radius: 6px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 1rem;
}

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

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(79, 195, 247, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.form-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid #ef5350;
  color: #ef9a9a;
}

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

.faq-item {
  border-bottom: 1px solid rgba(79, 195, 247, 0.2);
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
}

.faq-item.open .faq-question::after { content: '−'; }

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

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

/* About - mission stickers */
.mission-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin: 2.5rem 0;
}

.mission-sticker {
  background: var(--bg-black);
  border: 2px solid var(--accent);
  padding: 1.25rem 2rem;
  border-radius: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  min-width: 180px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 3rem 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.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-dark);
  transform: translateX(-5.5px);
}

.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

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

.about-photos img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(79, 195, 247, 0.3);
}

/* Services detail */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-black);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(79, 195, 247, 0.2);
}

.service-detail-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.service-detail-card ul {
  margin: 1rem 0 1rem 1.25rem;
}

.service-detail-card li { margin-bottom: 0.4rem; }

.guarantee-block {
  background: rgba(79, 195, 247, 0.08);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
}

.top-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.advantage-item {
  background: var(--bg-black);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid var(--accent);
}

.advantage-item span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

/* Bonus program */
.bonus-program {
  background: var(--bg-black);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

.bonus-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.bonus-icon {
  text-align: center;
  max-width: 160px;
}

.bonus-icon svg {
  width: 64px;
  height: 64px;
  fill: var(--accent);
  margin: 0 auto 0.75rem;
}

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

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

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

.map-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
}

/* Legal pages */
.legal-page { padding: 3rem 0 5rem; }

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--accent);
}

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

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

.legal-page .drop-cap::first-letter { font-size: 3em; }

/* Footer */
.site-footer {
  background: var(--bg-black);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(79, 195, 247, 0.2);
}

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

.footer-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

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

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

.footer-info { font-size: 0.9rem; }

.footer-info p { margin-bottom: 0.5rem; }

.footer-social {
  display: flex;
  gap: 1.25rem;
  margin: 1rem 0;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(79, 195, 247, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.85rem;
}

.footer-legal a { color: rgba(245, 248, 252, 0.7); }

.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

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

.content-long { font-size: 1rem; }

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

  .service-detail-card { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo img { margin: 0 auto; }
  .footer-nav ul { justify-content: center; }

  .strength-card:nth-child(n) { transform: none; }
  .strengths-grid { align-items: stretch; }
}

@media (max-width: 768px) {
  section { padding: 3rem 0; }
  .form-section, .advantages-block { padding: 1.75rem; }
  .bonus-program { padding: 1.75rem; }
}
