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

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --border: #222222;
  --text: #e8e8e8;
  --text-muted: #888888;
  --accent: #1a6fd4;
  --accent-light: #3d8ee8;
  --accent-glow: rgba(26, 111, 212, 0.15);
  --white: #ffffff;
  --radius: 10px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-light);
  color: var(--white);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--white);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000000;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

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

.header__logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

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

.header__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.header__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switch__btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn:hover {
  color: var(--white);
}

.lang-switch__btn--active {
  background: var(--accent);
  color: var(--white);
}

.header__phone {
  font-size: 0.875rem;
}

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

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  background: linear-gradient(180deg, #000000 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(26, 111, 212, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.hero__text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

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

.hero__status {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__status--open {
  color: #4ade80;
}

.hero__status--closed {
  color: #f87171;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero__slider {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero__slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
  will-change: transform;
}

.hero__slider-track img {
  height: 100%;
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slider-track {
    transition: none;
  }
}

/* Features */
.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius);
  color: var(--accent-light);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Services */
.services {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
}

.services .section-title,
.services .section-subtitle,
.gallery__header,
.reviews .section-title,
.reviews .section-subtitle {
  text-align: center;
}

.services .section-subtitle,
.gallery__header .section-subtitle,
.reviews .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.services__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
  align-items: stretch;
}

.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
  opacity: 0.85;
}

.service-item:hover {
  border-color: #2a2a2a;
  background: var(--bg-elevated);
}

.service-item__topic {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-item__subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item__subs li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.service-item__subs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.9;
}

.services__cta {
  text-align: center;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

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

/* Gallery */
.gallery {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.gallery__header {
  margin-bottom: 32px;
}

.gallery__header .section-subtitle {
  margin-bottom: 0;
}

.gallery__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__viewport::-webkit-scrollbar {
  display: none;
}

.gallery__track {
  display: flex;
}

.gallery__page {
  --gallery-gap: 14px;
  --gallery-block-h: calc(100svh - var(--header-h) - 28px);
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-gap);
  height: var(--gallery-block-h);
}

.gallery__tile {
  margin: 0;
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
}

.gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery__tile:hover img,
.gallery__tile:focus-visible img {
  transform: scale(1.04);
}

.gallery__tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.gallery__arrow:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent-light);
}

.gallery__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 64px 72px 56px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(920px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.8);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__arrow:hover:not(:disabled) {
  background: rgba(40, 40, 40, 0.95);
  border-color: var(--accent);
  color: var(--accent-light);
}

.lightbox__close:disabled,
.lightbox__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox__arrow--prev {
  left: 16px;
}

.lightbox__arrow--next {
  right: 16px;
}


/* Reviews */
.reviews {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.review-card__stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card__text {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.55;
}

.review-card__author {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.reviews__source {
  text-align: center;
  font-size: 0.875rem;
}

/* Contact */
.contact {
  padding: 80px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

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

.contact__item svg {
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.contact__item a {
  font-size: 0.9375rem;
}

.hours {
  list-style: none;
  font-size: 0.9375rem;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 0;
  color: var(--text-muted);
}

.hours li span:last-child {
  color: var(--text);
}

.contact__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.contact__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.contact__social a:hover {
  color: var(--accent-light);
  border-color: var(--accent);
}

.contact__map {
  height: 420px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact__map iframe {
  display: block;
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__phone {
  font-weight: 600;
}

/* FAB */
.fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(26, 111, 212, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 32px rgba(26, 111, 212, 0.5);
  color: var(--white);
}

/* Mobile nav */
.header__nav.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #000000;
  padding: 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.header__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.open span:nth-child(2) {
  opacity: 0;
}

.header__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

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

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__slider {
    max-width: min(240px, 64vw);
    max-height: 260px;
    aspect-ratio: 3 / 3.3;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .contact__map {
    height: 320px;
  }

  .gallery {
    padding: 56px 0 64px;
  }

  .gallery .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gallery__carousel {
    position: relative;
    display: block;
  }

  .gallery__viewport {
    width: 100%;
  }

  .gallery__page {
    --gallery-gap: 8px;
    height: auto;
    grid-template-rows: repeat(2, auto);
  }

  .gallery__tile {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
  }

  .gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 10, 0.62);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
  }

  .gallery__arrow--prev {
    left: 10px;
  }

  .gallery__arrow--next {
    right: 10px;
  }

  .lightbox {
    padding: 56px 12px 48px;
  }

  .lightbox__arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox__arrow--prev {
    left: 8px;
  }

  .lightbox__arrow--next {
    right: 8px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__actions .header__phone span {
    display: none;
  }

  .header__actions .header__phone {
    padding: 10px 12px;
  }

  .lang-switch {
    order: -1;
  }

  .header__burger {
    display: flex;
  }

  .fab {
    display: flex;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
