/*
 * videoperm.ru — стили сайта.
 * Дизайн перенесён с WordPress/Elementor один в один: цвета, размеры и
 * отступы взяты из его CSS. Один файл, без фреймворков и сборки.
 */

/* ---------- Шрифты (со своего домена) ---------- */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rozovii Chulok";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("../fonts/rozovii-chulok.woff2") format("woff2"), url("../fonts/rozovii-chulok.ttf") format("truetype");
}

/* ---------- Основа ---------- */

:root {
  --cyan: #00deed;
  --pink: #f04dff;
  --purple: #7300a5;
  --accent: #c312bd;
  --text: #bfc8cf;
  --white: #fff;
  --panel: #001b32;
  --gutter: 45px;
  --box-bg: linear-gradient(140deg, #c312bd33 0%, #00254200 100%);
  --box-shadow: 10px 13px 10px 0 rgba(0, 0, 0, .13);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: #00192f;
  background-image: radial-gradient(at center center, #003154 0%, #00192f 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, video, svg { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }
picture { display: contents; }

a { color: var(--cyan); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--white); font-family: "Montserrat", sans-serif; line-height: 1.3; }
h1 { font-size: 57px; font-weight: 900; }
h2 { font-size: 37px; font-weight: 800; }
h3 { font-size: 28px; font-weight: 800; }
h4 { font-size: 24px; font-weight: 700; }
h5 { font-size: 20px; font-weight: 700; }
h6 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 .9em; }
b, strong { font-weight: 700; }

button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 10px 16px; background: #fff; color: #000;
}
.skip-link:focus { left: 10px; top: 10px; }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 10px; }
.container--form { max-width: 1180px; }

/* ---------- Шапка ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 17% 33.543% 30.733% 12.782% 5.929%;
  align-items: center;
  min-height: 80px;
  padding: 0 20px;
}
.site-header > * { padding: 0 10px; }

.site-header__logo {
  display: inline-block;
  color: #fff;
  font-size: 1.9vw;
  font-weight: 800;
  line-height: 1.2;
}
.site-header__logo:hover { color: #fff; }

.site-header__tagline {
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}
.site-header__tagline--desktop { padding-top: 7px; }
.site-header__tagline--mobile, .site-header__phone--mobile { display: none; }

.site-header__phone {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}
.site-header__phone:hover { color: #fff; }

.site-header__menu {
  justify-self: end;
  display: block;
  padding: 0;
  margin: 0 0 0 auto;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
}
.site-header__menu img { width: 60px; height: 60px; opacity: .8; transition: opacity .3s; }
.site-header__menu:hover img { opacity: 1; }

.social { display: flex; align-items: center; justify-content: flex-end; gap: 35px; }
.social a { display: inline-flex; color: #fff; transition: color .3s, transform .3s; }
.social a:hover { color: var(--cyan); transform: scale(1.1); }
.social svg { width: 25px; height: 25px; }
.social--left { justify-content: flex-start; }
.social--center { justify-content: center; }
.site-header__social { margin-top: 5px; }

.follow-us {
  position: fixed;
  top: 45%;
  left: 10px;
  z-index: 30;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  white-space: nowrap;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
.follow-us a { color: var(--cyan); }
.follow-us a:hover { color: var(--accent); }

/* ---------- Меню (выезжает справа) ---------- */

.menu-panel { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; }
.menu-panel__overlay { position: absolute; inset: 0; background: #00000059; }
.menu-panel__body {
  position: relative;
  width: 17vw;
  min-width: 240px;
  height: 100vh;
  padding: 40px;
  overflow-y: auto;
  background: #000;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
  animation: slide-in .4s ease both;
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.menu-panel__close {
  position: absolute; top: 10px; right: 10px;
  padding: 0; background: none; border: 0; cursor: pointer;
  color: #ccc; line-height: 0;
}
.menu-panel__close:hover { color: #fff; }
.menu-panel__list { list-style: none; margin: 0 0 25px; padding: 0; }
.menu-panel__list li { font-size: 18px; line-height: 1.7; padding: 0; margin: 0; }
.menu-panel__list li + li { margin-top: 25px; }
.menu-panel__list a { color: #fff; }
.menu-panel__list a:hover { color: var(--cyan); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 51px;
  border: 2px solid var(--cyan);
  background: transparent;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 4.6px;
  line-height: 1.7;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 8px; height: 8px; flex: none; }
.btn:hover, .btn:focus-visible {
  background-color: var(--cyan);
  color: #000;
  box-shadow: 0 0 20px 0 var(--cyan);
}
.btn--outline { letter-spacing: 2px; }
.btn--submit {
  min-width: 240px;
  padding: 17px 51px;
  border-width: 1px;
}
.btn--submit:disabled { opacity: .6; cursor: wait; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 11px 15px;
  color: #ffffff8f;
  font-size: 15px;
  letter-spacing: 2.8px;
}
.btn-link__circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid currentColor; border-radius: 50%;
}
.btn-link__circle svg { width: 9px; height: 9px; }
.btn-link:hover { color: var(--cyan); }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 var(--gutter);
  overflow: hidden;
  text-align: center;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: #001a3099 url("/uploads/2021/03/vid-bg-first-1.png") no-repeat bottom center / cover;
  background-image: image-set(url("/uploads/2021/03/vid-bg-first-1.webp") type("image/webp"), url("/uploads/2021/03/vid-bg-first-1.png") type("image/png"));
}
.hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; padding-top: 20px; }
.hero__heading { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.hero__script {
  display: block;
  color: #fff;
  font-family: "Rozovii Chulok", sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
}
.hero__title {
  display: inline-block;
  margin: 0;
  font-size: 120px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  background-image: radial-gradient(at center center, var(--pink) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pink);
}
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 50px; }

/* ---------- Секции и заголовки ---------- */

.section { padding: 100px var(--gutter) 0; }
.section-heading { text-align: center; max-width: 1180px; margin: 0 auto; }
.section-heading__h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.section-heading__script {
  display: block;
  color: #fff;
  font-family: "Rozovii Chulok", sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
}
.section-heading__title {
  display: block;
  margin: 0;
  color: var(--pink);
  font-size: 37px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 66px var(--purple);
}
.section-lead { max-width: 1180px; margin: 30px auto 30px; color: #fff; text-align: center; }
.section-actions { display: flex; justify-content: center; margin-top: 40px; }
.section-subtitle { margin: 0 0 30px; text-align: center; font-size: 28px; }

/* ---------- Портфолио ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.js .work--more { display: none; }
.js .works.is-expanded .work--more { display: block; }

.work { position: relative; }
.work__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.work__link:hover { color: #fff; }
.work__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0; z-index: 5;
  width: 100%; height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform .45s cubic-bezier(.24, 1, .3, 1);
}
.work__link:hover::after, .work__link:focus-visible::after { transform: scaleX(1); }

.work__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.work__bg img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.work__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .25);
  transition: background-color .4s ease;
}
.work__link:hover .work__bg img { transform: scale(1.13); }
.work__link:hover .work__bg::after { background-color: rgba(0, 0, 0, 0); }

.work__body {
  display: flex;
  flex-direction: column;
  min-height: 387px;
  padding: 62px 30px 58px;
}
.work__content { flex: 1 0 auto; min-height: 228px; }
.work__title { margin: 0 0 10px; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.3; }
.work__sub { margin: 0; color: #fff; font-size: 16px; line-height: 1.5; }
.work__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 24px;
  text-transform: uppercase;
  transition: color .3s;
}
.work__arrow { display: inline-flex; }
.work__link:hover .work__btn { color: var(--cyan); }
.work__count {
  position: absolute; top: 18px; right: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .5px;
}

.works-more { display: flex; justify-content: center; margin-top: 40px; }
.works.is-expanded + .works-more { display: none; }
html:not(.js) .works-more { display: none; }

/* Логотипы клиентов */
.clients { position: relative; overflow: hidden; margin-top: 50px; padding: 40px 0 10px; }
.clients__track { display: flex; align-items: center; transition: transform .6s ease; will-change: transform; }
.clients__item {
  flex: 0 0 calc((100% - 6 * 50px) / 7);
  margin-right: 50px;
  display: flex; align-items: center; justify-content: center;
}
.clients__item img { max-height: 70px; width: auto; }

/* ---------- Формы ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
.field {
  display: block;
  padding: 20px 20px 20px 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  background-image: var(--box-bg);
  box-shadow: var(--box-shadow);
}
.field--wide { grid-column: 1 / -1; }
.field__label { display: block; text-transform: uppercase; }

.input, .select select {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 15px 15px 15px 20px;
  border: 1px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .5px;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #ffffff80; opacity: 1; }
.input:focus, .select select:focus { outline: 0; border-color: var(--cyan); background-color: #ffffff0a; }
.input.is-invalid { border-color: #ff6b6b; }
.input--area { min-height: 214px; resize: vertical; }

.select { position: relative; display: block; margin: 8px 0; }
.select::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  border: 4px solid transparent; border-top-color: #fff; border-bottom: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.select select { margin: 0; padding-right: 44px; cursor: pointer; }
.select--small select { padding: 9px 44px 9px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.select option { background: #0e254d; color: #fff; }

/* Чекбоксы: белый квадрат, при отметке — бирюзовый с галочкой */
.check { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check__box {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 5px;
  background: #fff;
  color: #000;
  transition: background-color .2s;
}
.check__box svg { opacity: 0; transition: opacity .2s; }
.check input:checked + .check__box { background: var(--cyan); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check__text { font-size: 16px; font-weight: 700; line-height: 1.4; }
.check__text a { color: var(--cyan); }
.check__text a:hover { color: var(--accent); }
.check--consent.is-invalid .check__box { box-shadow: 0 0 0 2px #ff6b6b; }

.check-list { display: grid; gap: 20px; margin-top: 10px; }
.check--row {
  padding: 20px 20px 20px 29px;
  background-image: var(--box-bg);
  box-shadow: var(--box-shadow);
}
.field--consent { padding-top: 18px; padding-bottom: 18px; }

/* Ползунок 0–8 */
.range { position: relative; padding: 16px 12px 0; --fill: 0%; }
.range input {
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range input::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--pink) var(--fill), #fff var(--fill));
}
.range input::-moz-range-track { height: 4px; border-radius: 4px; background: #fff; }
.range input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--pink); }
.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: -10px;
  border: 4px solid var(--pink); border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.range input::-moz-range-thumb {
  width: 16px; height: 16px;
  border: 4px solid var(--pink); border-radius: 50%;
  background: #fff;
}
.range__scale {
  display: flex;
  justify-content: space-between;
  margin: 2px -3px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.range__scale span { position: relative; width: 12px; padding-top: 10px; text-align: center; }
.range__scale span::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 1px; height: 7px; background: #ffffffb3;
}

.form-error {
  margin: 20px 0 0;
  padding: 10px 15px;
  border: 2px solid #ff6b6b;
  border-radius: 5px;
  background: rgba(255, 107, 107, .15);
  color: #fff;
  font-size: 15px;
  text-align: center;
}
.form-submit { display: flex; justify-content: center; margin-top: 25px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Калькулятор ---------- */

.section--calc .section-lead { margin-bottom: 10px; }
.calc-total {
  display: grid;
  grid-template-columns: 51.949% 48.009%;
  align-items: center;
  margin: 0 0 30px;
  padding: 20px 0;
  border-top: 2px solid #ffffff4d;
  border-bottom: 2px solid #ffffff4d;
}
.calc-total__label { padding: 0 10px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; text-align: right; }
.calc-total__value { padding: 0 10px; color: #fff; font-size: 26px; line-height: 1.3; }
.calc-form .form-grid { gap: 20px 30px; }
.calc-form .field--wide .check-list { max-width: none; }

/* ---------- Преимущества ---------- */

.section--pros {
  padding-bottom: 100px;
  margin-top: 60px;
  background: url("/uploads/2021/03/vid-bg-pros-1.png") no-repeat center / cover;
  background-image: image-set(url("/uploads/2021/03/vid-bg-pros-1.webp") type("image/webp"), url("/uploads/2021/03/vid-bg-pros-1.png") type("image/png"));
}
.section--pros .section-lead { margin-bottom: 10px; }
.pros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; text-align: center; }
.pros__item { padding: 10px; }
.pros__icon { width: 50%; margin: 0 auto; }
.pros__icon img { width: 100%; }
.pros__title { margin: 0 0 12px; color: var(--cyan); font-size: 20px; font-weight: 800; }
.pros__text { margin: 0; color: #fff; font-size: 15px; }

/* ---------- Заявка ---------- */

.switcher { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 0 0 30px; }
.switcher__label { color: #ffffff78; font-size: 16px; font-weight: 700; cursor: pointer; transition: color .3s; }
.switcher__label.is-active { color: #fff; }
.switcher__toggle { position: relative; display: inline-block; width: 74px; height: 36px; cursor: pointer; }
.switcher__toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switcher__slider {
  position: absolute; inset: 0;
  border-radius: 36px;
  background: var(--cyan);
  transition: background-color .3s;
}
.switcher__slider::before {
  content: "";
  position: absolute; left: 0; top: -3px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .3s;
}
.switcher__toggle input:checked + .switcher__slider::before { transform: translateX(32px); }
.switcher__toggle input:focus-visible + .switcher__slider { outline: 2px solid #fff; outline-offset: 3px; }

.contacts { padding: 100px 0 70px; color: #fff; text-align: center; }
.contacts p { margin: 0; }
.contacts__phone {
  display: inline-block;
  margin: 12px 0 10px;
  color: #fff;
  font-size: 37px;
  font-weight: 800;
  line-height: 1.3;
}
.contacts__phone:hover { color: var(--cyan); }
.contacts .social { margin-bottom: 20px; }

/* ---------- Подвал ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 10px 30px;
  border-top: 1px solid #ffffff47;
}
.site-footer__logo img { display: block; width: 161px; height: auto; }
.site-footer__link { color: #fff; font-size: 15px; }
.site-footer__link:hover { color: var(--cyan); }

/* ---------- Всплывающие окна ---------- */

.modal, .lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 50px 20px;
  overflow-y: auto;
}
.modal__overlay, .lightbox__overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); }
.modal__dialog {
  position: relative;
  width: 55vw;
  max-width: 1100px;
  margin: auto;
  padding: 40px;
  background: var(--panel);
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
  animation: pop-in .3s ease both;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal__close, .lightbox__close {
  position: absolute; top: -36px; right: -36px;
  padding: 0; border: 0; background: none;
  color: #ccc; cursor: pointer; line-height: 0;
}
.modal__close:hover, .lightbox__close:hover { color: #fff; }
.modal__title { margin: 0 0 .5em; color: #fff; font-size: 37px; font-weight: 800; line-height: 1.3; text-align: center; }
.modal__text { text-align: center; margin-bottom: 25px; color: #fff; }
.modal__dialog--thanks {
  width: 49vw;
  min-height: 65vh;
  padding: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.thanks__icon { color: var(--cyan); line-height: 0; margin-bottom: 20px; }
.thanks__subtitle { margin-bottom: 20px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3; }
.thanks__text { max-width: 480px; margin: 0 auto 30px; color: #fff; line-height: 1.5; }

.lightbox__overlay { background: rgba(0, 0, 0, .9); }
.lightbox__dialog { position: relative; width: min(1200px, 100%, calc((100vh - 170px) * 16 / 9)); }
.lightbox__frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox__frame iframe, .lightbox__frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding-top: 12px; color: #fff; }
.lightbox__title { font-size: 16px; font-weight: 700; }
.lightbox__nav { display: flex; align-items: center; gap: 12px; flex: none; }
.lightbox__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid #ffffff80; border-radius: 50%;
  background: none; color: #fff; cursor: pointer;
  transition: border-color .3s, color .3s;
}
.lightbox__arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.lightbox__counter { min-width: 48px; text-align: center; font-size: 14px; letter-spacing: 1px; }


/* ---------- Форматы («Что мы снимаем») ---------- */

.formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.format {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  color: #fff;
  background-image: var(--box-bg);
  box-shadow: var(--box-shadow);
  transition: box-shadow .3s, transform .3s;
}
.format:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--box-shadow), inset 0 0 0 1px var(--cyan); }
.format__title { margin: 0 0 12px; color: var(--cyan); font-size: 20px; font-weight: 800; line-height: 1.3; }
.format__text { flex: 1 0 auto; margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.format__more {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ffffffb3;
  font-size: 14px;
  letter-spacing: 2px;
  transition: color .3s;
}
.format:hover .format__more { color: var(--cyan); }
.formats__links { max-width: 900px; margin: 35px auto 0; color: #fff; font-size: 15px; text-align: center; }

/* ---------- Частые вопросы ---------- */

.faq { display: grid; gap: 15px; max-width: 980px; margin: 40px auto 0; }
.faq__item { background-image: var(--box-bg); box-shadow: var(--box-shadow); }
.faq__question {
  position: relative;
  padding: 22px 64px 22px 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  position: absolute; right: 24px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 14px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 14px no-repeat;
  transition: transform .3s;
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__question:hover { color: var(--cyan); }
.faq__answer { padding: 0 24px 22px; color: #fff; }
.faq__answer p { margin: 0; }

.page-lead { margin-top: -20px; margin-bottom: 40px; }

/* ---------- Блог ---------- */

.page-top { padding: 90px var(--gutter) 60px; }
.page-title { margin: 0 0 50px; text-align: center; }
.page-title--left { text-align: left; margin-bottom: 20px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1162px;
  margin: 0 auto;
}
.blog-card { padding: 15px; }
.blog-card__link { position: relative; display: block; overflow: hidden; background: #212121; color: #fff; }
.blog-card__image { position: relative; overflow: hidden; }
.blog-card__image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, .32);
}
.blog-card__image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease-in-out; }
.blog-card__link:hover .blog-card__image img { transform: scale(1.1); }
.blog-card__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px;
  background: rgba(0, 0, 0, .85);
}
.blog-card__title { margin: 0; color: #fff; font-size: 25px; font-weight: 800; line-height: 30px; transition: color .3s; }
.blog-card__link:hover .blog-card__title { color: var(--cyan); }

/* ---------- Статья ---------- */

.post-hero {
  position: relative;
  padding: 0 var(--gutter);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.post-hero__overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, #002542 30%, #57287c 100%);
  opacity: .64;
}
.post-hero__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: max(40vh, 150px) 0 65px; }
.post-hero__back a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ffffffb3;
  font-size: 17px;
  line-height: 1.7;
}
.post-hero__back a:hover { color: var(--cyan); }
.post-hero__back svg { width: 18px; height: 18px; }
.post-hero__title { margin: 30px 0 10px; }
.post-hero__date { color: #ffffffc2; }

.post-content { margin: 50px auto 80px; padding: 0 10px; max-width: 1200px; color: #fff; overflow-wrap: break-word; }
.post-content::after { content: ""; display: table; clear: both; }
.post-content h2, .post-content h3, .post-content h4 { clear: none; }
.post-content h2 { font-size: 28px; font-weight: 800; }
.post-content ul, .post-content ol { margin: 0 0 20px; }
.post-content li { padding-left: 12px; margin: 6px 0; }
.post-content blockquote {
  margin: 0 0 20px;
  padding-left: 2rem;
  border-left: 5px solid #0acbd7;
  font-style: italic;
}
.post-content img { max-width: 100%; }
.post-content .alignright { float: right; padding: 20px 0 20px 20px; max-width: 50%; }
.post-content .alignleft { float: left; padding: 20px 20px 20px 0; max-width: 50%; }
.post-content .aligncenter { display: block; margin: 0 auto; }

.section--latest { padding-top: 0; }
.section--related { padding-top: 80px; }
.section--related .blog-grid { margin-top: 0; }
.section--post-order { padding-top: 80px; padding-bottom: 80px; }
.section--post-order .section-subtitle { margin-bottom: 50px; }

.text-page { max-width: 1140px; margin: 0 auto; padding: 90px 20px 60px; overflow-wrap: anywhere; }
.text-page h2 { margin-top: 1em; font-size: 28px; font-weight: 800; }
.text-page a { text-decoration: underline; }

.page-404__inner { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Планшет ---------- */

@media (max-width: 1024px) {
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { grid-template-columns: 13% 30% 19% 27% 11%; }
  .site-header__logo { font-size: 23px; }
  .hero__title { font-size: 66px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__item { flex-basis: calc((100% - 2 * 50px) / 3); }
  .menu-panel__body { width: 37vw; }
  .modal__dialog { width: 87vw; padding: 25px; }
  .modal__dialog--thanks { width: 81vw; }
  .modal__close, .lightbox__close { top: -40px; right: 0; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-hero { background-attachment: scroll; }
}

/* ---------- Телефон ---------- */

@media (max-width: 767px) {
  :root { --gutter: 20px; }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
  h5, h6 { font-size: 16px; }

  .site-header { grid-template-columns: 65% 10% 25%; padding: 5px 0 0; align-items: start; }
  .site-header__tagline--desktop, .site-header__phone--desktop { display: none; }
  .site-header__tagline--mobile, .site-header__phone--mobile { display: block; }
  .site-header__phone--mobile { margin-top: 15px; text-align: left; }
  .site-header__social { flex-direction: column; gap: 20px; margin-top: 10px; }
  .site-header__social svg { width: 22px; height: 22px; }
  .site-header__menu { margin-top: 12px; }

  .follow-us { left: 1px; font-size: 14px; }

  .hero { min-height: 0; padding: 20px 20px 0; }
  .hero__inner { padding-top: 140px; padding-bottom: 90px; }
  .hero__script { font-size: 30px; }
  .hero__title { font-size: 36px; }
  .hero__actions { margin-top: 35px; }
  .hero .btn { padding: 14px 25px; letter-spacing: 4px; }

  .section { padding-top: 80px; }
  .section-heading__script { font-size: 30px; }
  .section-heading__title { font-size: 22px; }
  .section-subtitle { font-size: 22px; }
  .post-content h2, .text-page h2 { font-size: 22px; }
  .modal__title { font-size: 28px; }
  .thanks__subtitle { font-size: 18px; }
  .formats { grid-template-columns: 1fr; }
  .faq__question { font-size: 16px; padding: 18px 54px 18px 20px; }
  .faq__question::after { right: 20px; }
  .faq__answer { padding: 0 20px 18px; }
  .section--related { padding-top: 60px; }
  .section-actions .btn { padding: 14px 25px; }
  .works { grid-template-columns: 1fr; }
  .clients__item { flex-basis: calc((100% - 50px) / 2); }

  .calc-total { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .calc-total__label, .calc-total__value { text-align: center; }
  .calc-total__label { font-size: 16px; }
  .form-grid, .calc-form .form-grid { grid-template-columns: 1fr; }
  .field { padding: 20px 20px 20px 24px; }
  .check--row { padding-left: 29px; }
  .section--pros { padding-bottom: 20px; }
  .pros { grid-template-columns: 1fr; }
  .pros__icon { width: 50%; }
  .switcher { gap: 10px; }
  .switcher__label { font-size: 14px; }
  .contacts { padding-top: 80px; padding-bottom: 80px; }
  .contacts__phone { font-size: 28px; }

  .site-footer { flex-direction: column; justify-content: center; text-align: center; }

  .menu-panel__body { width: 74vw; min-width: 0; }
  .modal { padding: 0; }
  .modal__dialog, .modal__dialog--thanks { width: 100vw; min-height: 100vh; margin: 0; padding: 60px 20px 30px; }
  .modal__close { top: 8px; right: 6px; }
  .modal__close svg { width: 25px; height: 25px; }
  .lightbox { padding: 60px 0; }
  .lightbox__close { top: -48px; right: 10px; }
  .lightbox__bar { padding: 12px 12px 0; }

  .page-top { padding: 100px 6px 40px; }
  .page-title { margin-bottom: 30px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card__title { font-size: 22px; line-height: 27px; }

  .post-content { padding: 0 20px; margin-top: 40px; }
  .post-content .alignright, .post-content .alignleft { float: none; max-width: 100%; padding: 10px 0; }
  .section--post-order { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
