:root {
  color-scheme: light;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --bg: #f5f2fb;
  --bg-alt: #ede7f6;
  --card: #ffffff;
  --text: #141414;
  --muted: #5b546b;
  --accent: #7b4dff;
  --accent-strong: #4b23d8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --border: rgba(20, 20, 20, 0.12);
}

body.theme-dark {
  color-scheme: dark;
  --bg: #0f0d16;
  --bg-alt: #1a1526;
  --card: #171323;
  --text: #f6f1ff;
  --muted: #b5abc9;
  --accent: #9a79ff;
  --accent-strong: #6f44ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --border: rgba(255, 255, 255, 0.12);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.holiday-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.holiday .holiday-layer {
  opacity: 1;
}

.holiday-layer .garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background:
    radial-gradient(circle at 20px 40px, rgba(255, 77, 129, 0.8) 0 6px, transparent 7px),
    radial-gradient(circle at 70px 20px, rgba(123, 77, 255, 0.8) 0 6px, transparent 7px),
    radial-gradient(circle at 120px 50px, rgba(255, 215, 90, 0.85) 0 6px, transparent 7px),
    radial-gradient(circle at 170px 30px, rgba(82, 196, 255, 0.8) 0 6px, transparent 7px),
    radial-gradient(circle at 220px 46px, rgba(120, 255, 170, 0.8) 0 6px, transparent 7px);
  background-size: 260px 80px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  opacity: 0.9;
}

body.theme-dark .holiday-layer .garland {
  background:
    radial-gradient(circle at 20px 40px, rgba(255, 120, 180, 0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 70px 20px, rgba(140, 110, 255, 0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 120px 50px, rgba(255, 225, 120, 0.98) 0 6px, transparent 7px),
    radial-gradient(circle at 170px 30px, rgba(120, 210, 255, 0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 220px 46px, rgba(140, 255, 200, 0.95) 0 6px, transparent 7px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.holiday-layer .snow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 2px, transparent 3px);
  background-size: 120px 120px, 90px 90px, 160px 160px;
  background-position: 0 0, 40px 20px, 20px 60px;
  animation: snowFall 10s linear infinite;
  opacity: 0.6;
}

body.theme-dark .holiday-layer .snow {
  opacity: 0.75;
}

@keyframes snowFall {
  0% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(10%);
  }
}

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

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

button {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(123, 77, 255, 0.45), transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
}

.blob-1 {
  top: -10%;
  left: -10%;
}

.blob-2 {
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(75, 35, 216, 0.38), transparent 60%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
}

body.theme-dark .ambient-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 242, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.theme-dark .site-header {
  background: rgba(15, 13, 22, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--accent-strong);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-link:hover,
.icon-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 22px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav a::after {
  content: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

.nav a {
  border-color: var(--border);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.theme-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.theme-dark .theme-moon,
body:not(.theme-dark) .theme-sun {
  opacity: 1;
  transform: scale(1.1);
}

.hero {
  padding: 110px 0 80px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 16px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.hero-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.9rem;
}

.motto {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 26px 0 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.hero-card {
  padding: 24px;
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.hero-card.glow {
  position: relative;
  overflow: hidden;
}

.hero-card.glow::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle, rgba(123, 77, 255, 0.25), transparent 60%);
  opacity: 0.8;
}

.hero-card.glow * {
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(123, 77, 255, 0.15);
  color: var(--accent-strong);
  font-weight: 600;
}

.section {
  padding: 90px 0;
}

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

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  line-height: 1.15;
}

.section-note {
  max-width: 360px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent-strong);
}

.grid.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 4px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.card-top h3,
.card-top .price {
  margin: 0;
}

.price {
  font-weight: 700;
  color: var(--accent-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 122, 24, 0.35);
}

.btn.ghost {
  background: var(--card);
  border: 1px solid var(--border);
}

.btn.small {
  padding: 9px 18px;
  font-size: 0.95rem;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-text ul {
  padding-left: 18px;
}

.about-metrics {
  display: grid;
  gap: 16px;
}

.metric {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.metric-label {
  margin: 0;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 220px;
  background: var(--card);
}

.portfolio-tile .tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.05);
  opacity: 0.8;
}

.portfolio-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 13, 22, 0.6), rgba(15, 13, 22, 0.15));
}

.tile-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  color: #fff;
}

.tile-overlay h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.tile-overlay .btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(15, 13, 22, 0.35);
  color: #fff;
}

.contacts-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-panel {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 50px 0 40px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 24px;
}

.footer-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--text);
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

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

.footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.footer-telegram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  margin: 0;
  text-align: center;
}

.modal {
  border: none;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
}

.modal-content {
  width: min(600px, 90vw);
  background: var(--card);
  color: var(--text);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  animation: modalIn 0.35s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-note {
  font-weight: 600;
  color: var(--accent-strong);
}

.modal-gallery {
  margin-top: 16px;
}

.slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 320px;
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slider img.is-active {
  opacity: 1;
}

@keyframes modalIn {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 80px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
