/* ===== CSS Variables ===== */
:root {
  --navy: #0b1d3a;
  --navy-light: #132d54;
  --navy-dark: #071428;
  --blue: #3b9eff;
  --blue-light: #6bb8ff;
  --blue-dark: #2a7fd4;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #64748b;
  --gray-800: #1e293b;
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 29, 58, 0.12);
  --shadow-lg: 0 16px 48px rgba(11, 29, 58, 0.16);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-h: 72px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(59, 158, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(59, 158, 255, 0.45);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(11, 29, 58, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.header__logo img {
    width: 300px;
    max-width: none;
    height: auto;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.header__nav a:hover {
  color: var(--blue-light);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--blue-light);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 158, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(59, 158, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--blue-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__phone {
  display: inline-block;
  color: var(--blue-light);
  font-size: 1.25rem;
  font-weight: 700;
  transition: color var(--transition);
}

.hero__phone:hover {
  color: var(--white);
}

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  min-width: 180px;
}

.hero__stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__header p {
  color: var(--gray-600);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ===== Services ===== */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 158, 255, 0.3);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 16px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-card__price {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.1) 0%, rgba(59, 158, 255, 0.05) 100%);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
}

/* ===== Advantages ===== */
.advantages {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.advantage-card h3 {
  margin-bottom: 8px;
}

.advantage-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== Process ===== */
.process {
  background: var(--navy);
  color: var(--white);
}

.process .section__header h2,
.process .section__header p {
  color: var(--white);
}

.process .section__header p {
  opacity: 0.8;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.process-step {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), background var(--transition);
}

.process-step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.process-step__num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 12px;
  line-height: 1;
}

.process-step h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.process-step p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* ===== Reviews ===== */
.reviews {
  background: var(--gray-50);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-card__stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.review-card footer strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.review-card footer span {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* ===== About ===== */
.about {
  background: var(--white);
}

.about__inner {
  max-width: 800px;
  margin: 0 auto;
}

.about__content h2 {
  margin-bottom: 20px;
}

.about__content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about__list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.about__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq {
  background: var(--gray-50);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--blue-dark);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__info h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.contact__info > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  transition: color var(--transition);
}

a.contact__item:hover {
  color: var(--blue-light);
}

.contact__item svg {
  flex-shrink: 0;
  color: var(--blue-light);
}

.contact__item span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.contact__item strong {
  font-size: 1.05rem;
}

.contact__form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
}

.contact__form h3 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 4px;
  accent-color: var(--blue);
}

.form-checkbox span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-checkbox a {
  color: var(--blue-light);
  text-decoration: underline;
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-note--success {
  color: #4ade80;
}

.form-note--error {
  color: #f87171;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  padding: 48px 0 32px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer__brand img {
  height: 40px;
  width: auto;
  margin: 0 auto 12px;
}

.footer__brand p {
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--blue-light);
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== Floating Call Button ===== */
.floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 158, 255, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2s infinite;
}

.floating-call:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(59, 158, 255, 0.6);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(59, 158, 255, 0.5); }
  50% { box-shadow: 0 4px 28px rgba(59, 158, 255, 0.7); }
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Privacy Page ===== */
.privacy-page {
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--white);
  min-height: 100vh;
}

.privacy-page .container {
  max-width: 800px;
}

.privacy-page h1 {
  margin-bottom: 8px;
}

.privacy-page .updated {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.privacy-page h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.privacy-page p,
.privacy-page li {
  color: var(--gray-600);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.privacy-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-page a {
  color: var(--blue-dark);
}

.privacy-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 500;
}

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
  .header__nav {
    gap: 20px;
  }

  .header__nav a {
    font-size: 0.85rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__stat {
    min-width: 140px;
    flex: 1;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 29, 58, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid var(--glass-border);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .header__nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .header__phone {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero__stats {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__stat {
    min-width: auto;
  }

  .services__grid,
  .advantages__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .process__steps {
    grid-template-columns: 1fr;
  }

  .about__list {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 24px;
  }
}

/* ===== Responsive: 320px ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__phone {
    font-size: 1.1rem;
  }

  .service-card,
  .advantage-card,
  .review-card,
  .process-step {
    padding: 20px;
  }

  .floating-call {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating-call {
    animation: none;
  }

  .btn:hover,
  .service-card:hover,
  .advantage-card:hover,
  .review-card:hover,
  .process-step:hover {
    transform: none;
  }
}
