:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #e6e9ee;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #f59e0b;
  --shadow: 0 18px 48px rgba(16, 24, 40, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  background-size: cover;
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

img,
video,
iframe {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  color: #fff;
  background: #111827;
  font-size: 14px;
  flex-wrap: wrap;
}

.powered,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.topbar__facebook-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px 5px 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff;
  background: rgba(24, 119, 242, .18);
  font-weight: 800;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease;
}

.topbar__facebook-card:hover {
  background: rgba(24, 119, 242, .32);
  border-color: rgba(255, 255, 255, .34);
}

.facebook-card-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1877f2;
  flex: 0 0 auto;
}

.facebook-card-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-dark);
}

.brand img {
  max-height: 58px;
}

.header-site-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  color: var(--brand-dark);
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 900;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.main-nav a {
  display: block;
  border-radius: 8px;
  padding: 10px 13px;
  color: #253044;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e7f7f5;
  color: var(--brand-dark);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.submenu::-webkit-scrollbar {
  width: 8px;
}

.submenu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.submenu::-webkit-scrollbar-track {
  background: #f8fafc;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu-toggle {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 5px auto;
  background: var(--ink);
}

.slider-content-shell {
  padding: 34px 0 0;
}

.slider-frame {
  padding: 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

.hero-slider {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #111827;
  border-radius: 8px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.88);
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 5vw, 62px);
  bottom: clamp(24px, 7vw, 64px);
  max-width: 720px;
  color: #fff;
  padding: 24px;
  border-radius: 8px;
  background: rgba(17, 24, 39, .58);
  backdrop-filter: blur(10px);
}

.hero-copy p,
.page-hero p {
  margin: 0 0 12px;
  color: #dbeafe;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 8vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
}

.slider-dots span.active {
  background: #fff;
}

.slider-arrow,
.slider-pause {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .48);
  color: #fff;
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.slider-arrow:hover,
.slider-pause:hover {
  background: rgba(17, 24, 39, .72);
}

.slider-arrow {
  top: 50%;
  width: 44px;
  height: 54px;
  border-radius: 8px;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.slider-arrow-prev {
  left: 14px;
}

.slider-arrow-next {
  right: 14px;
}

.slider-pause {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.page-hero {
  display: grid;
  align-items: end;
  min-height: 300px;
  padding: 54px 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #111827);
}

.page-hero > div,
.content-shell,
.footer-grid,
.copyright {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.content-shell {
  padding: 56px 0;
}

.page-content {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

.page-content h2,
.page-content h3 {
  line-height: 1.2;
}

.feature-grid,
.price-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature,
.price-card,
.gallery-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: block;
  clear: both;
  color: #eef2ff;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.site-footer h2 {
  margin-top: 0;
  font-size: 20px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
}

.map-stack {
  display: grid;
  gap: 18px;
}

.map-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
}

.map-embed iframe,
.map-placeholder {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 8px;
}

.viber-contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  color: #fff;
  background: #1d4ed8;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(29, 78, 216, .28);
  transition: background .18s ease, transform .18s ease;
}

.viber-contact-button:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

.viber-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
}

.viber-logo svg {
  width: 24px;
  height: 24px;
}

.viber-logo path:first-child {
  fill: #7360f2;
}

.viber-logo path:last-child {
  fill: #fff;
}

.map-placeholder {
  display: grid;
  place-items: center;
  background: #1f2937;
  color: #cbd5e1;
  padding: 20px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.antispam-field {
  display: grid;
  gap: 6px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 18px 0;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.powered {
  min-height: 36px;
  background: var(--accent);
  color: #111827;
  padding: 7px 12px;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: block;
  }

  .header-site-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    font-size: clamp(13px, 4.2vw, 20px);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .brand {
    max-width: 72px;
  }

  .brand img {
    max-width: 72px;
    max-height: 46px;
    object-fit: contain;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 24px;
    right: 24px;
    top: 100%;
    align-items: stretch;
    flex-direction: column;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-item.has-submenu {
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
  }

  .nav-item.has-submenu > a {
    grid-column: 1;
  }

  .submenu-toggle {
    grid-column: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
  }

  .submenu-toggle span {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
  }

  .submenu-open > .submenu-toggle span {
    transform: rotate(225deg) translateY(-2px);
  }

  .submenu {
    grid-column: 1 / -1;
    position: static;
    display: none;
    max-height: min(46vh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 4px 0 8px 16px;
    background: #fff;
    padding-left: 16px;
  }

  .has-submenu:hover .submenu {
    display: none;
  }

  .submenu-open > .submenu {
    display: block;
  }

  .has-submenu.submenu-open:hover .submenu {
    display: block;
  }

  .hero-slider {
    min-height: 360px;
  }

  .slider-arrow {
    width: 38px;
    height: 46px;
    font-size: 34px;
  }

  .slider-pause {
    width: 38px;
    height: 38px;
  }

  .hero-slide img,
  .hero-slide video {
    object-fit: contain;
    object-position: center center;
    background: #111827;
  }

  .hero-copy {
    max-width: calc(100% - 32px);
    left: 16px;
    right: 16px;
  }

  .feature-grid,
  .price-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

}

.modern-gallery {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.gallery-collage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.gallery-collage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  opacity: 0;
  transform: none;
  transition: opacity .7s ease;
}

.gallery-collage img.is-active {
  opacity: 1;
  transform: none;
}

.gallery-collage-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  max-width: min(420px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, .68);
  backdrop-filter: blur(10px);
}

.gallery-collage-caption span {
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-collage-caption strong {
  font-size: 22px;
}

.modern-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #111827;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .1);
}

.gallery-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.gallery-photo:hover img {
  transform: scale(1.05);
  filter: brightness(.78);
}

.gallery-photo span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, .68);
  font-weight: 800;
  text-align: left;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, .82);
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.gallery-lightbox p {
  margin: 14px 0 0;
  color: #fff;
  font-weight: 800;
}

.gallery-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #111827;
  background: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modern-gallery-empty {
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.form-message {
  margin: 0 0 22px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 800;
}

.form-message-success {
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #dcfce7;
}

.form-message-error {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fee2e2;
}

@media (max-width: 880px) {
  .modern-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-collage {
    min-height: 300px;
  }
}
