/* Seasonal home styling and organization — small space storage
   палитра: тёмная-глубокая | стиль: крупный-воздушный | код: сокращённый
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #101319;
  --color-text: #eef1f6;
  --color-muted: #9aa3b2;
  --color-accent: #4c8dff;
  --color-surface: #1a1f29;
  --color-on-accent: #08111f;

  --font-heading: 'Urbanist', Georgia, serif;
  --font-body: 'Urbanist', system-ui, sans-serif;

  --radius: 22px;
  --shadow: none;
  --container: 76rem;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* .swiper-pagination (vendor) всегда z-index:10 и растянута на всю ширину —
   кнопки листания не должны оказаться под ней, с каким бы z-index их ни
   поставила секционная раскладка. */
[data-slider-prev], [data-slider-next] { z-index: 20 !important; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.8rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(1rem, 1.1vw, 1.125rem); margin: 0 0 1.1em; max-width: 68ch; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }

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

.cnt {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
  overflow-x: hidden;
}

section { padding: clamp(5rem, 10vw, 9rem) 0; }
section:nth-of-type(even) { background: var(--color-surface); }

.sc-eye {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .6rem;
}

/* шапка */
.hd {
  position: sticky; top: 0; z-index: 1030;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
}
.hd-tra { background: transparent; border-bottom-color: transparent; }
.hd-inn { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.hd-bra { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.nv-lis { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nv-lin { display: block; padding: .5rem .9rem; border-radius: var(--radius);
  color: var(--color-text); text-decoration: none; font-weight: 500;
  transition: background .2s ease, color .2s ease; }
.nv-lin:hover { background: var(--color-surface); }
.nv-lin.is-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.nv-spl { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.hd-bur { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.hd-bur span { width: 22px; height: 2px; background: var(--color-text); }

/* кнопки */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bt-pri { background: var(--color-accent); color: var(--color-on-accent); }
.bt-pri:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bt-gho { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.bt-gho:hover { background: var(--color-accent); color: var(--color-on-accent); }

/* формы */
.fm label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.fm input, .fm textarea {
  width: 100%; padding: .8rem 1rem; margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font: inherit;
}
.fm input:focus, .fm textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.fm [aria-invalid="true"] { border-color: #c62828; }
.fm-err { color: #c62828; font-size: .85rem; margin: -.7rem 0 .9rem; }
.fm-ok { background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.fm-con { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.fm-con input { width: auto; margin: .25rem 0 0; }

/* правовые страницы */
.lg { background: var(--color-bg); }
.lg-inn { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lg h2 { margin-top: 2.2rem; }
.lg h3 { margin-top: 1.4rem; }
.lg-upd { color: var(--color-muted); font-size: .9rem; }
.lg-tab { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.lg-tab th, .lg-tab td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.lg-tab th { width: 34%; font-weight: 600; }
.lg-bac { margin-top: 2.5rem; }

/* футер */
.ft { background: var(--color-surface); }
.ft-con { background: var(--color-text); color: var(--color-bg); }
.ft-con a { color: inherit; }
.ft-inn { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); }
.ft-row { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.6rem; font-size: .9rem; }
.ft-bra { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.ft-tag { opacity: .75; font-size: .95rem; }
.ft-tit { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: .9rem; }
.ft-add { font-style: normal; line-height: 1.7; }
.ft-hou { opacity: .75; font-size: .92rem; margin-top: .7rem; }
.ft-lin { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ft-ck { background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.ft-bot { display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1.2rem; font-size: .85rem; opacity: .75;
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); }
.ft-bot p { margin: 0; }

/* плашка cookie */
.ck {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1080;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  box-shadow: 0 -8px 30px rgb(0 0 0 / .12);
  transform: translateY(100%); transition: transform .35s ease;
}
.ck.is-visible { transform: translateY(0); }
.ck-inn { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.ck-tex p { margin: 0; font-size: .92rem; max-width: 70ch; }
.ck-act { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.ck-con { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ck-opt { display: grid; gap: .6rem; margin-top: 1rem; }
.ck-opt { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.ck-opt span { grid-column: 2; font-weight: 400; opacity: .75; }
/* анимации: без JS всё видно */
[data-aos]:not(.aos-init) { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 991px) {
  .ft-inn { grid-template-columns: 1fr 1fr; }
  .ck-inn { flex-direction: column; align-items: stretch; }
  .ck-act { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .hd-bur { display: flex; }
  .hd-cta { display: none; }
  .nv { display: none; width: 100%; }
  .nv.is-open { display: block; }
  .nv-lis { flex-direction: column; padding-block: .6rem; }
  .hd-inn { flex-wrap: wrap; }
  .ft-inn { grid-template-columns: 1fr; gap: 2rem; }
  .ft-bot, .ft-row { flex-direction: column; }
  .ck-act .bt { flex: 1 1 auto; }
}

/* Секционный слой: sec — секция, cnt — контейнер, crd — карточка,
   tl — таймлайн, bt — кнопка, bento — асимметричная сетка. */
.sec > .cnt > .sc-eye + h2,
.sec > .cnt > .sc-eye + h1 { max-width: 18ch; }

.sec > .cnt > h2 + p,
.sec > .cnt > .sc-eye + h2 + p { color: var(--color-muted); }

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.hero .cnt { overflow: visible; }
.hero .sc-eye,
.hero a { color: var(--color-on-accent); }
.hero h1 { max-width: 13ch; letter-spacing: -.045em; }
.hero p:not(.sc-eye) { max-width: 54ch; }
.hero .bt-pri { background: var(--color-on-accent); color: var(--color-text); }
.hero .bt-gho { border-color: var(--color-on-accent); color: var(--color-on-accent); }
.hero .bt-gho:hover { background: var(--color-on-accent); color: var(--color-text); }

.crd {
  height: 100%;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

section:nth-of-type(even) .crd { background: var(--color-bg); }
.crd p:last-child { margin-bottom: 0; }
.crd .bt { margin-top: auto; align-self: flex-start; }

.sec img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

#about img,
#topic-06 img,
#topic-12 img,
#history img,
#team img,
#service-process img { min-height: 100%; }

.table-responsive {
  margin-block: 2.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
}

section:nth-of-type(even) .table-responsive { background: var(--color-bg); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--color-text); margin: 0; }
.table > :not(caption) > * > * {
  padding: 1.15rem 1.25rem;
  border-color: color-mix(in srgb, var(--color-muted) 24%, transparent);
}
.table thead th { color: var(--color-accent); vertical-align: top; }
.table tbody th { min-width: 11rem; }

#topic-02 .tl {
  position: relative;
  list-style: none;
  max-width: 52rem;
  margin: 3rem 0 2.5rem;
  padding: 0 0 0 3.75rem;
}
#topic-02 .tl::before {
  content: "";
  position: absolute;
  inset: .75rem auto .75rem 1rem;
  width: 2px;
  background: var(--color-accent);
}
#topic-02 .tl li { position: relative; padding: 0 0 1.5rem 1rem; }
#topic-02 .tl li::before {
  content: "";
  position: absolute;
  top: .35rem;
  left: -3.3rem;
  width: 1.15rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 .5rem var(--color-surface);
}
#topic-02 .tl p { color: var(--color-muted); }

#topic-03 .row > article:nth-child(1) .crd,
#topic-03 .row > article:nth-child(4) .crd { background: var(--color-accent); color: var(--color-on-accent); }
#topic-03 h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

#topic-04 { background: var(--color-accent); color: var(--color-on-accent); }
#topic-04 .sc-eye { color: var(--color-on-accent); }
#topic-04 blockquote {
  max-width: 25ch;
  margin: 2rem 0 2.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}
#topic-04 p:last-child { margin-left: auto; max-width: 52ch; }

#topic-05 .swiper { margin-top: 2.5rem; padding: .25rem .1rem 4.75rem; }
#topic-05 .swiper-wrapper { align-items: stretch; }
#topic-05 .swiper-slide { height: auto; min-height: 18rem; }
#topic-05 [data-slider-prev],
#topic-05 [data-slider-next] { position: absolute; bottom: .2rem; width: 3.25rem; height: 3.25rem; padding: 0; }
#topic-05 [data-slider-prev] { left: 0; }
#topic-05 [data-slider-next] { left: 4rem; }
#topic-05 .swiper-pagination { bottom: 1rem; text-align: right; }
#topic-05 .swiper-pagination-bullet { background: var(--color-muted); opacity: .55; }
#topic-05 .swiper-pagination-bullet-active { background: var(--color-accent); opacity: 1; }

#topic-07 .crd { min-height: 19rem; justify-content: flex-end; }
#topic-07 article:nth-child(2) .crd { background: var(--color-accent); color: var(--color-on-accent); transform: translateY(1.5rem); }

#topic-08 h2 { max-width: 22ch; }
#topic-08 .row > div:first-child { border-top: 2px solid var(--color-accent); padding-top: 2rem; }
#topic-08 .row > div:last-child { padding-top: 2rem; }

#topic-09 .row { margin-block: 2.5rem; }
#topic-09 .crd { min-height: 13rem; justify-content: space-between; }
#topic-09 [data-countup] { color: var(--color-accent); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; }
#topic-09 .crd span { max-width: 10rem; color: var(--color-muted); }

#topic-10 figure { margin: 0; display: flex; flex-direction: column; }
#topic-10 figure img { aspect-ratio: 4 / 5; }
#topic-10 figure:nth-child(2) img { aspect-ratio: 4 / 5; object-position: center; }
#topic-10 figcaption { padding: 1.25rem .25rem 0; color: var(--color-muted); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(10rem, auto);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.bento .crd:first-child { grid-column: span 2; grid-row: span 2; background: var(--color-accent); color: var(--color-on-accent); justify-content: flex-end; }
.bento .crd:first-child h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.bento .crd:nth-child(4) { grid-column: span 2; }

#social-proof .row { align-items: stretch; }
.avatar {
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 800;
}

#services .table { min-width: 48rem; table-layout: fixed; }
#services .table th:not(:first-child), #services .table td { text-align: center; }
#services .table thead th { height: 15rem; }
#services .table thead .bt { margin-top: 1.25rem; }
#services .is-featured {
  box-shadow: inset 3px 0 var(--color-accent), inset -3px 0 var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
#services .is-featured span { display: inline-block; margin-bottom: .6rem; padding: .25rem .65rem; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); }

.accordion { margin-top: 2.5rem; --bs-accordion-border-width: 0; }
.accordion-item { margin-bottom: .75rem; border: 0; border-radius: var(--radius) !important; overflow: hidden; background: var(--color-surface); color: var(--color-text); }
section:nth-of-type(even) .accordion-item { background: var(--color-bg); }
.accordion-button,
.accordion-button:not(.collapsed) { padding: 1.4rem 1.5rem; background: transparent; color: var(--color-text); box-shadow: none; font-weight: 700; }
.accordion-button::after { filter: invert(1); }
.accordion-body { padding: 0 1.5rem 1.5rem; color: var(--color-muted); }

#contacts address,
#contact-details address { font-size: clamp(1.2rem, 2vw, 1.65rem); font-style: normal; }
#contacts .frm,
#contact-details .frm { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--color-bg); }
#contacts iframe,
#map iframe { margin-top: 3rem; border-radius: var(--radius); }

#plans .row { align-items: stretch; }
#plans article { display: flex; }
#plans .crd { width: 100%; }
#plans .crd ul { margin-bottom: 2rem; }
#plans .crd .bt { margin-top: auto; }
#plans .is-featured { position: relative; outline: 3px solid var(--color-accent); }
#plans .is-featured > span { align-self: flex-start; margin-bottom: 1rem; padding: .3rem .75rem; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }

#map iframe { display: block; width: 100%; }

@media (max-width: 991px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  #topic-07 article:nth-child(2) .crd { transform: none; }
  #plans .is-featured { transform: none; }
}

@media (max-width: 767px) {
  body { padding-bottom: 4.75rem; }
  .hd { position: fixed; top: auto; bottom: .75rem; left: .75rem; right: .75rem; border: 0; border-radius: var(--radius); background: var(--color-surface); }
  .hd-inn { padding-block: .65rem; }
  .nv { position: absolute; left: 0; right: 0; bottom: calc(100% + .5rem); padding: .75rem; border-radius: var(--radius); background: var(--color-surface); }
  .hero { min-height: calc(88vh - 4.75rem); }
  .hero .bt { width: 100%; margin: .3rem 0; }
  .bento { grid-template-columns: 1fr; }
  .bento .crd:first-child, .bento .crd:nth-child(4) { grid-column: auto; grid-row: auto; }
  #topic-10 figure img { aspect-ratio: 16 / 10; }
  #topic-09 .row > * { width: 100%; }
  #topic-05 .swiper-pagination { display: none; }
}

@media (max-width: 575px) {
  .cnt { padding-inline: 1.25rem; }
  .crd { padding: 2rem; }
  .table > :not(caption) > * > * { padding: .9rem; }
  #topic-02 .tl { padding-left: 2.75rem; }
  #topic-02 .tl::before { left: .55rem; }
  #topic-02 .tl li::before { left: -2.75rem; }
  #topic-04 blockquote { font-size: clamp(2rem, 11vw, 3rem); }
  #topic-05 .swiper { overflow: hidden; }
  #plans .crd { padding: 2rem; }
}
