:root {
  --bg: #f4f8fc;
  --bg-alt: #eef4fb;
  --surface: #ffffff;
  --surface-strong: #fefefe;
  --surface-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 246, 252, 0.95));
  --text: #112744;
  --text-soft: #36506e;
  --text-muted: #60758e;
  --line: rgba(17, 39, 68, 0.1);
  --line-strong: rgba(17, 39, 68, 0.16);
  --primary: #0d6efd;
  --primary-dark: #094eb6;
  --accent: #ff8a00;
  --accent-dark: #d96d00;
  --accent-soft: rgba(255, 138, 0, 0.14);
  --success: #0d7744;
  --shadow: 0 22px 58px rgba(15, 40, 70, 0.14);
  --shadow-soft: 0 16px 34px rgba(15, 40, 70, 0.08);
  --shadow-strong: 0 28px 70px rgba(15, 40, 70, 0.18);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(13, 110, 253, 0.1), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(255, 138, 0, 0.13), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 38%, #eef5fb 100%);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.hero-copy h1,
.contact-copy h2 {
  margin: 0.8rem 0 1rem;
  font-family: "Outfit", "Manrope", sans-serif;
  line-height: 1.08;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-heading p,
.hero-text,
.contact-copy p,
.advantage-card p,
.service-card li {
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 251, 255, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(11, 31, 56, 0.06);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 251, 255, 0.92);
  box-shadow: 0 16px 36px rgba(11, 31, 56, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}

.brand {
  max-width: 240px;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav {
  position: absolute;
  inset: calc(100% + 0.5rem) 1rem auto 1rem;
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-nav a {
  padding: 0.82rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  color: var(--text-soft);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--primary-dark);
  background: rgba(13, 110, 253, 0.11);
}

.site-nav a.is-active {
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.12);
}

.nav-open .site-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding-top: 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(48vw, 560px);
  height: 420px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.14), transparent 68%);
  pointer-events: none;
}

.hero-grid,
.contact-grid,
.services-grid,
.advantages-grid,
.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 8vw, 5rem);
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 54ch;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.85rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.45rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff9c18, #ff7100);
  box-shadow: 0 18px 32px rgba(255, 138, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #ffab2f, #e56600);
  box-shadow: 0 24px 42px rgba(255, 138, 0, 0.38);
}

.btn-call {
  min-height: 62px;
  padding: 1.05rem 1.8rem;
  font-size: 1.04rem;
}

.btn-secondary {
  color: var(--primary-dark);
  background: rgba(13, 110, 253, 0.09);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.18);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(13, 110, 253, 0.15);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.22), 0 14px 26px rgba(13, 110, 253, 0.12);
}

.btn-block {
  width: 100%;
}

.hero-cta-note {
  margin: 0 0 1.4rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 39, 68, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 380px;
}

.hero-photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.services {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(240, 246, 252, 0.85));
}

.service-card,
.advantage-card,
.gallery-item,
.contact-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.service-card:hover,
.advantage-card:hover,
.gallery-item:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 110, 253, 0.24);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 1.75rem;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(255, 138, 0, 0.16));
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.service-card h3,
.advantage-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-card ul {
  display: grid;
  gap: 0.82rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.list-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 0.05rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.06);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.list-icon::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
  transform: translateY(-1px) rotate(-45deg);
}

.advantages-grid {
  gap: 1.25rem;
}

.advantage-card {
  padding: 1.7rem;
  border-color: rgba(17, 39, 68, 0.12);
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.05), rgba(255, 255, 255, 0.98));
}

.advantage-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(13, 110, 253, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.08);
  font-size: 1.35rem;
}

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

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gallery-filter {
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(17, 39, 68, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.gallery-filter:hover,
.gallery-filter:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: var(--shadow-soft);
}

.gallery-filter.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.24);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.88;
  background: linear-gradient(145deg, rgba(13, 110, 253, 0.14), rgba(255, 138, 0, 0.16));
  cursor: zoom-in;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.45s ease, box-shadow 0.28s ease, border-color 0.28s ease, opacity 0.3s ease, filter 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(6, 20, 38, 0.26));
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.is-hidden {
  opacity: 0;
  transform: scale(0.94);
  filter: saturate(0.85);
  pointer-events: none;
}

.gallery-item.is-fallback::after {
  content: "Снимка на проект";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: auto;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.gallery-item.is-fallback img {
  opacity: 0;
}

.contact-grid {
  align-items: start;
  gap: 1.75rem;
}

.contact-copy {
  padding-top: 0.25rem;
}

.contact-note {
  margin-top: 0.9rem;
  color: var(--text);
  font-weight: 800;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contact-card {
  display: block;
  padding: 1.2rem 1.25rem;
}

.contact-card-priority {
  border-color: rgba(13, 110, 253, 0.14);
  box-shadow: var(--shadow);
}

.contact-card-call {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 243, 227, 0.96));
}

.contact-card-viber {
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(230, 239, 252, 0.96));
}

.contact-card-priority strong {
  color: var(--text);
}

.contact-card-priority span {
  color: var(--text-soft);
  font-weight: 700;
}

.visit-card-block {
  margin-top: 1.5rem;
}

.visit-card-block h3 {
  margin: 0 0 0.8rem;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 1.15rem;
}

.visit-card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.visit-card-trigger:hover,
.visit-card-trigger:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(13, 110, 253, 0.24);
  box-shadow: var(--shadow);
}

.visit-card-trigger img {
  width: 100%;
  height: auto;
}

.contact-card strong,
.footer-wrap strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-card span,
.footer-details span,
.footer-copy,
.form-message {
  color: var(--text-muted);
}

.contact-form {
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.95));
  box-shadow: 0 12px 28px rgba(15, 40, 70, 0.07);
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form span {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid rgba(17, 39, 68, 0.12);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(13, 110, 253, 0.44);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.11);
}

.form-message {
  min-height: 1.8rem;
  margin: 1rem 0 0;
  font-weight: 700;
}

.form-message.is-visible {
  color: var(--success);
}

.site-footer {
  padding: 1.8rem 0 2.7rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

body.has-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 31, 0.84);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100% - 1rem, 1280px);
  height: min(100vh - 1rem, 920px);
  margin: 0.5rem auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(10, 21, 37, 0.72);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.lightbox-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-btn:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.lightbox-stage {
  overflow: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.lightbox-image {
  display: block;
  width: min(100%, 1100px);
  max-width: none;
  height: auto;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

@media (max-width: 719px) {
  .lightbox-dialog {
    width: calc(100% - 0.5rem);
    height: calc(100vh - 0.5rem);
    margin: 0.25rem auto;
    border-radius: 22px;
  }

  .lightbox-toolbar {
    padding: 0.75rem;
  }

  .lightbox-toolbar-group {
    gap: 0.45rem;
  }

  .lightbox-btn {
    width: 42px;
    height: 42px;
  }

  .lightbox-stage {
    padding: 0.75rem;
  }
}

.mobile-float-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: none;
  gap: 0.75rem;
}

.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff7a00;
  color: white;
  padding: 14px 18px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.mobile-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 58px;
  min-height: 58px;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(11, 31, 56, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-float-btn:hover,
.mobile-float-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(11, 31, 56, 0.22);
}

.mobile-float-btn:active {
  transform: scale(0.97);
  box-shadow: 0 10px 20px rgba(11, 31, 56, 0.16);
}

.mobile-float-btn span:first-child {
  font-size: 1.05rem;
  line-height: 1;
}

.mobile-float-call {
  background: linear-gradient(135deg, #ff9c18, #ff7100);
}

.mobile-float-viber {
  background: linear-gradient(135deg, #1b7df7, #0953c2);
}

.footer-wrap,
.footer-details {
  display: grid;
  gap: 0.65rem;
}

.footer-copy {
  display: inline-block;
  margin-top: 0.18rem;
}

@media (min-width: 720px) {
  .mobile-float-actions {
    display: none;
  }

  .section {
    padding: 6.5rem 0;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .services-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-details {
    grid-template-columns: repeat(2, auto);
    justify-content: end;
    gap: 1rem 1.4rem;
  }
}

@media (max-width: 719px) {
  .call-button {
    right: 16px;
    bottom: 16px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  }
}

@media (min-width: 960px) {
  .brand {
    max-width: none;
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    padding: 0.78rem 1rem;
  }

  .hero-grid {
    gap: 2.4rem;
  }

  .hero-photo-frame {
    min-height: 560px;
  }

  .hero-photo {
    min-height: 560px;
  }
}
