﻿:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #5d6b7a;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --line: #e5e7eb;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --mx: 50%;
  --my: 50%;
}
*,:before,:after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(29, 78, 216, 0.09),
    rgba(29, 78, 216, 0.02) 32%,
    transparent 68%
  );
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 64px 0; }
.section-soft { background: #eef2ff; }
h1,h2,h3 { line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.lead { color: var(--muted); font-size: 1.05rem; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display:flex; align-items:center; justify-content:space-between; min-height:72px; gap: 1rem; }
.logo { font-weight: 700; color: var(--text); }
.site-nav { display:flex; gap: .8rem; align-items: center; }
.site-nav a { color: var(--text); font-weight: 500; padding: .35rem .55rem; border-radius: 8px; }
.site-nav a:hover { background:#f3f4f6; text-decoration:none; }
.menu-toggle {
  display:none; width:44px; height:44px; border:1px solid var(--line);
  border-radius:10px; background:#fff; padding:8px;
}
.menu-toggle span { display:block; height:2px; background:var(--text); margin:6px 0; }
.hero { background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%); }
.hero-enhanced {
  position: relative;
  overflow: hidden;
  background: transparent;
}
.hero-enhanced::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(125deg, #ffffff 0%, #eef2ff 36%, #f7f8fb 70%, #ffffff 100%);
  background-size: 240% 240%;
  animation: hero-bg-drift 28s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
}
.hero-enhanced > .container {
  position: relative;
  z-index: 1;
}
@keyframes hero-bg-drift {
  0% { background-position: 0% 44%; }
  100% { background-position: 100% 56%; }
}
.hero-grid { display:grid; grid-template-columns: 1.12fr 1fr; gap:1.75rem; align-items:center; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  --hero-visual-h: clamp(280px, 36vw, 420px);
}
.hero-visual .hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: var(--hero-visual-h);
  max-height: var(--hero-visual-h);
}
.hero-visual .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-height: none;
}
.hero-visual .hero-card {
  height: var(--hero-visual-h);
  max-height: var(--hero-visual-h);
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  justify-content: space-between;
}
.hero-visual .hero-card h2 {
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
  margin-bottom: 0.35rem;
}
.hero-visual .hero-card ul {
  margin: 0.1rem 0 0.65rem;
  font-size: 0.94rem;
  line-height: 1.45;
}
.eyebrow { color: var(--primary); font-weight:700; margin-bottom:.5rem; }
.hero-actions { display:flex; gap:.75rem; flex-wrap:wrap; }
.hero-image img {
  width:100%; max-height:480px; object-fit:cover; border-radius:var(--radius);
  border:1px solid var(--line); box-shadow:var(--shadow);
}
@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(11px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-home .hero-enter {
  opacity: 0;
  animation: home-fade-up 1.02s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--enter-delay, 0s);
}
.page-home .hero-enter--2 { --enter-delay: 0.12s; }
.page-home .hero-enter--3 { --enter-delay: 0.24s; }
.page-home .hero-enter--4 { --enter-delay: 0.36s; }
.page-home .hero-enter--5 { --enter-delay: 0.48s; }
.page-home .hero-enter--6 { --enter-delay: 0.6s; }
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.88s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.88s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px; padding:.7rem 1rem; font-weight:600;
  border:1px solid transparent; transition:.2s ease;
}
.btn:hover { text-decoration:none; transform:translateY(-1px); }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); }
.btn-secondary { color:var(--text); border-color:var(--line); background:#fff; }
.btn-secondary:hover { background:#f3f4f6; }
.btn.full { width:100%; }
.card, .contact-form, .hero-card, .article-card, .article-full, .photo-card {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
}
.hero-card { padding:1.2rem; }
.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.hero-card ul { padding-left:1.1rem; margin:.2rem 0 1rem; }
.cards { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:1rem; }
.card { padding:1.2rem; }
.card ul { padding-left:1.1rem; }
.vk-links {
  margin-top: .8rem;
}
.vk-links .card {
  display: flex;
  flex-direction: column;
}
.vk-links .btn {
  margin-top: auto;
  align-self: flex-start;
}
.price { color:var(--primary); font-weight:700; margin:0; }
.metrics { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:1rem; }
.metric { background:#fff; border:1px solid var(--line); border-radius:14px; padding:1rem; text-align:center; }
.metric strong { display:block; font-size:1.8rem; color:var(--primary); }
.metric span { color:var(--muted); font-size:.95rem; }
.page-head { margin-bottom:1rem; }
.article-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:1rem; }
.article-card {
  padding:1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card h3 { font-size:1.08rem; }
.article-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.article-full { padding:1.2rem; margin:0 0 1rem; max-width: 44rem; margin-inline: auto; }
.article-full h2 {
  margin-top: 1.85rem;
  margin-bottom: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.28rem, 2.4vw, 1.55rem);
}
.article-full h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.1rem;
}
.article-full h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  color: var(--text);
}
.article-full > p,
.article-full > ul,
.article-full > ol {
  margin-top: 0;
  margin-bottom: 0.95rem;
}
.article-full ul li,
.article-full ol li {
  margin-bottom: 0.4rem;
}
.term-quote {
  margin: 1.15rem 0 1.35rem;
  padding: 1rem 1.15rem 1.05rem 1.2rem;
  border-left: 4px solid var(--primary);
  background: linear-gradient(92deg, rgba(29, 78, 216, 0.07) 0%, rgba(29, 78, 216, 0.02) 48%, transparent 100%);
  border-radius: 0 14px 14px 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}
.term-quote p {
  margin: 0;
}
.term-quote strong {
  color: var(--primary-dark);
  font-weight: 700;
}
.article-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.98rem;
}
.article-callout p:last-child {
  margin-bottom: 0;
}
.article-callout p:first-child {
  margin-top: 0;
}
.article-full .article-disclaimer {
  margin: -0.35rem 0 1rem;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.55;
}
.card, .article-card, .photo-card, .article-full, .hero-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover, .article-card:hover, .photo-card:hover, .hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.14);
}
.breadcrumbs { color: var(--muted); font-size:.95rem; margin-bottom:.8rem; }
.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.crumb-sep {
  color: #9ca3af;
  margin: 0 .35rem;
}
.photo-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:1rem; }
.photo-card { margin:0; overflow:hidden; }
.photo-card img { width:100%; height:230px; object-fit:cover; display:block; }
.photo-card figcaption { font-size:.93rem; color:var(--muted); padding:.65rem .75rem .75rem; }
.zoomable {
  cursor: zoom-in;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portrait-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  align-self: start;
}

.portrait-card img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.portrait-card p {
  margin: .6rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 26, 0.88);
  z-index: 1000;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 24px 60px rgba(0,0,0,.45);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.14);
  color: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
}
.contacts-wrap { display:grid; grid-template-columns: 1fr 1fr; gap:1.2rem; }
.contact-list { list-style:none; padding:0; margin:0 0 1rem; }
.contact-list li { margin-bottom:.5rem; }
.messenger-icons { display:inline-flex; gap:.45rem; margin-left:.45rem; vertical-align:middle; }
.icon-btn {
  width:34px; height:34px; border-radius:999px; display:inline-flex; align-items:center;
  justify-content:center; color:#fff; transition:transform .15s ease, opacity .15s ease;
}
.icon-btn:hover { transform:translateY(-1px); opacity:.95; text-decoration:none; }
.icon-btn svg { width:18px; height:18px; fill:currentColor; }
.icon-btn.tg { background:#28a9e2; }
.icon-btn.wa { background:#25d366; }
.icon-btn.max { width:auto; min-width:42px; padding:0 10px; background:#111827; font-size:.72rem; font-weight:700; letter-spacing:.03em; }
.note {
  color:#92400e; background:#fffbeb; border:1px solid #f59e0b44;
  border-radius:10px; padding:.75rem; margin:0;
}
.contact-form { padding:1.2rem; }
.contact-form label { display:block; margin:.4rem 0; font-weight:500; }
.contact-form input,.contact-form textarea {
  width:100%; border:1px solid #d1d5db; border-radius:10px; padding:.65rem .75rem;
  font:inherit; margin-bottom:.75rem;
}
.form-result { min-height:1.2em; margin-top:.65rem; color:#065f46; }
.site-footer { border-top:1px solid var(--line); background:#fff; }
.site-footer p { margin:0; padding:1.1rem 0; color:var(--muted); font-size:.95rem; }
.footer-legal {
  margin-left: .55rem;
}
.footer-legal a {
  color: var(--primary);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 1.2rem));
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.33);
  padding: .85rem .9rem;
  z-index: 1200;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner a {
  color: #93c5fd;
}

.cookie-btn {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  padding: .48rem .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: #1d4ed8;
}
@media (max-width: 960px) {
  .hero-grid,.contacts-wrap,.about-layout { grid-template-columns:1fr; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-visual .hero-image,
  .hero-visual .hero-card {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
  .hero-visual .hero-image img {
    width: 100%;
    height: auto;
    max-height: min(440px, 68vh);
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .cards,.article-grid,.photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-enhanced::before {
    animation: none;
    background-position: 50% 50%;
  }
  .page-home .hero-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 760px) {
  .menu-toggle { display:block; }
  .site-nav {
    position:absolute; top:72px; right:1rem; left:1rem; display:none; flex-direction:column;
    background:#fff; border:1px solid var(--line); border-radius:12px; padding:.7rem; box-shadow:var(--shadow);
  }
  .site-nav.open { display:flex; }
  .cards,.article-grid,.metrics,.photo-grid { grid-template-columns:1fr; }
  .section { padding:56px 0; }
  body::before {
    display: none;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-btn {
    width: 100%;
  }
}


