﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f9fb;
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(255, 255, 255, 0.35);
  --text: #10202f;
  --muted: #5c6975;
  --accent: #24c3a0;
  --accent-dark: #0f9a7a;
  --glass-blur: 18px;
  --shadow-soft: 0 10px 30px rgba(16, 32, 47, 0.1);
}

body[data-theme="dark"] {
  --bg: #050c15;
  --card-bg: rgba(8, 15, 25, 0.75);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --shadow-soft: 0 10px 30px rgba(4, 9, 18, 0.8);
}

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

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

body[data-theme="dark"] .site-header {
  background: rgba(5, 12, 21, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
  gap: 3rem;
}

.header__socials {
  margin-left: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand span {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #24c3a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.brand img {
  width: 200px;

}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  
  /* Фиксированная ширина - усиленная версия для iOS */
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  flex: 0 0 auto; /* Не растягивается и не сжимается */
  
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  
  /* Выравнивание полосок */
  justify-content: center;
  align-items: stretch;
}

.nav-toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 15px 30px rgba(36, 195, 160, 0.25);
}

.btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.theme-toggle input {
  accent-color: var(--accent);
}

.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color:#0f9a7a;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(36, 195, 160, 0.35), transparent 60%),
    url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  z-index: -2;
  animation: heroParallax 20s linear infinite alternate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 249, 251, 0.95), rgba(247, 249, 251, 0.85));
  z-index: -1;
}

body[data-theme="dark"] .hero-section::after {
  background: radial-gradient(circle at top, rgba(11, 25, 45, 0.8), rgba(5, 12, 21, 0.9));
}

.hero-content {
  display: grid;
  gap: 2rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0.6rem 0;
}

.hero-text .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-stats strong {
  font-size: 1.8rem;
  display: block;
}

.hero-card {
  align-self: flex-start;
  padding: 1.5rem;
  border-radius: 20px;
}

.hero-card-title {
  font-weight: 600;
  margin-top: 0;
}

.hero-card ul {
  padding-left: 1rem;
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section-top {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0;
}

.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-card img {
  width: 48px;
  height: 48px;
}

.benefits-grid {
  display: grid;
  gap: 1.25rem;
}

.benefit-card {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  /* background-image: url("../img/pattern-glass.webp"); */
  background-size: cover;
}

.benefit-icon {
  font-size: 1.5rem;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonials {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.75rem;
}

.team-grid {
  display: grid;
  gap: 2rem;
}

.team-media {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.team-media img {
  width: 100%;
  max-width: 260px;
  justify-self: center;
  border-radius: 50%;
  object-fit: cover;
}

.cta-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.consultation-form {
  padding: 2.5rem;
}

.form-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text);
}

.form-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-form label,
.consultation-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.label-text {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.cta-form input,
.consultation-form input {
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text);
}

.cta-form input:focus,
.consultation-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(36, 195, 160, 0.1);
}

.cta-form input::placeholder,
.consultation-form input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

body[data-theme="dark"] .cta-form input,
body[data-theme="dark"] .consultation-form input {
  background: rgba(6, 10, 18, 0.6);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .cta-form input:focus,
body[data-theme="dark"] .consultation-form input:focus {
  background: rgba(6, 10, 18, 0.8);
  border-color: var(--accent);
}

.form-submit-btn {
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 195, 160, 0.3);
}

.form-submit-btn svg {
  transition: transform 0.3s ease;
}

.form-submit-btn:hover svg {
  transform: translateX(4px);
}

.cta-form .form-hint,
.consultation-form .form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

/* Секция контактов */
.contact-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(247, 249, 251, 0.5) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  padding: 2rem;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 195, 160, 0.1);
  border-radius: 50%;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.contact-socials img {
  transition: transform 0.2s ease;
}

.contact-socials a:hover img {
  transform: scale(1.1);
}

.contact-map {
  padding: 2rem;
}

.contact-map h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.map-address {
  margin: 0;
  padding: 0.75rem;
  background: rgba(36, 195, 160, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.map-link-card:hover div {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(36, 195, 160, 0.3);
}

/* Секция консультации */
.consultation-section {
  background: var(--bg);
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.consultation-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.consultation-photo-wrapper {
  position: relative;
  align-self: center;
  margin-bottom: 0.5rem;
}

.consultation-photo {
  width: 238px;
  height: 300px;
  border-radius: 27%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(36, 195, 160, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consultation-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(36, 195, 160, 0.35);
}

.photo-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(36, 195, 160, 0.4);
  font-weight: 600;
}

.photo-badge span {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.photo-badge small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 400;
}

.consultation-content {
  text-align: center;
}

.consultation-info h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.consultation-description {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.consultation-benefits {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.benefit-item:hover {
  background: rgba(36, 195, 160, 0.05);
}

.benefit-icon {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 195, 160, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .contact-grid,
  .consultation-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }
}

.site-footer {
  padding: 3rem 0;
  background: #050c15;
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.socials {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@keyframes heroParallax {
  from {
    transform: scale(1.05) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-10px);
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    gap: 0.5rem; /* Вместо 4rem */
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    background: rgba(247, 249, 251, 0.97);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  body[data-theme="dark"] .site-nav {
    background: rgba(5, 12, 21, 0.95);
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
  }
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testimonials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: var(--bg-light);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.feature__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Модальное окно */
.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;
  pointer-events: none;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 32, 47, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  margin: 1rem;
  z-index: 1001;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 1002;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.callback-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.callback-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.callback-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 195, 160, 0.1);
}

.callback-form input::placeholder {
  color: var(--muted);
}
