/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #0a5a8a;
  --blue-700: #1a8fd4;
  --blue-600: #29abe2;
  --blue-500: #3db8f0;
  --blue-100: #d6f0fc;
  --blue-50: #eef8fe;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green-500: #22c55e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-700);
}

ul {
  list-style: none;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn--primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--blue-50);
  color: var(--blue-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--facebook {
  background: #1877f2;
  color: var(--white);
  border-color: #1877f2;
}

.btn--facebook:hover {
  background: #166fe5;
  color: var(--white);
}

.btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
  border-color: transparent;
}

.btn--instagram:hover {
  opacity: 0.9;
  color: var(--white);
}

.btn--full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  flex-shrink: 0;
}

.logo img {
  border-radius: 50%;
  object-fit: cover;
}

.logo:hover {
  color: var(--gray-900);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong {
  font-size: 15px;
  font-weight: 700;
}

.logo__text small {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

.nav__list {
  display: flex;
  gap: 8px;
}

.nav__link {
  display: block;
  padding: 8px 16px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav__link:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.header__phone:hover {
  background: var(--blue-100);
  color: var(--blue-900);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,90,138,.93) 0%, rgba(41,171,226,.88) 60%, rgba(61,184,240,.82) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.hero__promo {
  display: flex;
  justify-content: center;
}

.hero__promo img {
  max-width: 380px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.stat span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--gray-50);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section__desc {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.section--alt .service-card,
.section:not(.section--alt) .service-card {
  background: var(--white);
}

.service-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 14px;
  color: var(--blue-600);
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.service-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
}

/* ===== Promo banner ===== */
.promo-banner {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.promo-banner img {
  width: 100%;
  height: auto;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery__item {
  margin: 0;
}

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery__btn img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(41,171,226,.0);
  transition: background var(--transition);
}

.gallery__btn:hover img {
  transform: scale(1.04);
}

.gallery__btn:hover::after {
  background: rgba(41,171,226,.15);
}

.gallery__item figcaption {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
}

.gallery__cta {
  text-align: center;
  margin-top: 40px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  color: var(--white);
  margin-top: 16px;
  font-size: 15px;
  text-align: center;
  opacity: 0.85;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__content p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about__features {
  margin-top: 24px;
}

.about__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 500;
}

.about__features svg {
  color: var(--green-500);
  flex-shrink: 0;
}

.about__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__promo {
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: none;
}

.step {
  display: flex;
  gap: 16px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.step:hover {
  border-color: var(--blue-200, var(--blue-100));
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.step__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.step__content p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: 64px 0;
  text-align: center;
}

.cta__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta__text {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.contact-item a:hover {
  color: var(--blue-600);
}

/* ===== Form ===== */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(33,150,243,.15);
}

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

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 12px;
}

.form-alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}

.form-alert--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand strong {
  display: block;
  color: var(--white);
  font-size: 15px;
}

.footer__brand span {
  font-size: 12px;
  color: var(--gray-400);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer__links a {
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
}

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

.footer__copy {
  font-size: 13px;
  color: var(--gray-600);
}

/* ===== FAB (floating action button) ===== */
.fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--green-500);
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.fab:hover {
  background: #16a34a;
  color: var(--white);
  transform: scale(1.08);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__promo img {
    max-width: 300px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .header__phone span {
    display: none;
  }

  .header__phone {
    padding: 8px 12px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__visual {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 20px;
  }

  .fab {
    display: flex;
  }

  .contact-form {
    padding: 24px 20px;
  }
}
