/*
Theme Name: C|E — S|E
Theme URI: https://se-tech.ru/
Author: S|E
Description: Visual WordPress theme based directly on the approved HTML prototype.
Version: 2.4.0-final-editable
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ce-se
*/


    :root {
      --bg: #f8f4ee;
      --bg-soft: #fcfaf7;
      --text: #23201d;
      --muted: #62584f;
      --border: #e7d8c7;
      --accent: #ea7a1a;
      --accent-dark: #cf6510;
      --white: #fff;
      --shadow: 0 10px 30px rgba(35, 32, 29, .08);
      --radius: 16px;
      --radius-sm: 10px;
      --container: 1240px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      min-width: 320px;
      color: var(--text);
      background:
        linear-gradient(to right, rgba(255,255,255,.38) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.38) 1px, transparent 1px),
        var(--bg);
      background-size: 32px 32px;
      font-family: Inter, sans-serif;
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
    }


/* FINAL S|E DECORATIVE BACKGROUND — additive only */
body::before,
body::after {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  content: "";
}
body::before {
  inset: 0;
  opacity: .34;
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(65,60,55,.11) 18.05%, transparent 18.12%),
    linear-gradient(164deg, transparent 0 63%, rgba(65,60,55,.08) 63.05%, transparent 63.12%),
    linear-gradient(72deg, transparent 0 82%, rgba(65,60,55,.07) 82.05%, transparent 82.12%);
  background-size: 720px 520px, 860px 620px, 980px 700px;
  background-position: 6% 4%, 86% 34%, 24% 88%;
}
body::after {
  top: 12%;
  right: 2%;
  width: 240px;
  height: 240px;
  opacity: .22;
  border: 1px solid rgba(234,122,26,.26);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(18deg);
}

    body.menu-open {
      overflow: hidden;
    }

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

    img {
      height: auto;
    }

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

    button,
    input,
    textarea {
      font: inherit;
    }

    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
      outline: 3px solid rgba(234, 122, 26, .38);
      outline-offset: 3px;
    }

    .container {
      width: min(var(--container), calc(100% - 32px));
      margin-inline: auto;
    }

    .section {
      padding: 72px 0;
      scroll-margin-top: 90px;
    }

    .section-head {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-bottom: 28px;
    }

    .section-head h2 {
      color: var(--text);
      font-size: 36px;
      font-weight: 900;
      line-height: 1.05;
      letter-spacing: -.02em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .section-line {
      width: 100%;
      height: 1px;
      background: var(--border);
    }

    .muted {
      color: var(--muted);
    }

    .scribble {
      color: var(--accent);
      font-family: "Marck Script", cursive;
      font-size: 24px;
      line-height: 1;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 48px;
      padding: 14px 24px;
      border: 1px solid transparent;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.2;
      text-align: center;
      cursor: pointer;
      transition: .2s ease;
    }

    .btn:disabled {
      cursor: wait;
      opacity: .65;
    }

    .btn--accent {
      color: #fff;
      background: var(--accent);
      box-shadow: 0 8px 24px rgba(234, 122, 26, .25);
    }

    .btn--accent:hover {
      background: var(--accent-dark);
      transform: translateY(-1px);
    }

    .btn--ghost {
      border-color: #c9b8a5;
      background: #fff;
    }

    .btn--ghost:hover {
      background: #f5eee7;
      transform: translateY(-1px);
    }

    /* HEADER */

    .header {
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 1px solid rgba(199, 178, 153, .45);
      background: rgba(248, 244, 238, .9);
      backdrop-filter: blur(12px);
    }

    .header__inner {
      min-height: 82px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 18px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-mark {
      width: 48px;
      height: 48px;
      flex: 0 0 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      color: #fff;
      background: linear-gradient(145deg, var(--accent), #f29a4d);
      font-size: 20px;
      font-weight: 900;
      box-shadow: 0 8px 20px rgba(234, 122, 26, .22);
    }

    .brand-text {
      min-width: 0;
      line-height: 1.05;
    }

    .brand-text em {
      display: block;
      margin-top: 0;
      color: var(--accent);
      font-family: "Marck Script", cursive;
      font-size: 18px;
      font-style: normal;
      line-height: 1;
      white-space: nowrap;
    }

    .brand-text span {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .045em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .nav {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(10px, 1.35vw, 22px);
    }

    .nav a {
      flex: 0 0 auto;
      font-size: clamp(10px, .86vw, 13px);
      font-weight: 800;
      text-transform: uppercase;
      white-space: nowrap;
      transition: color .2s ease;
    }

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

    .header-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .phone-link {
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .phone-link:hover {
      color: var(--accent);
    }

    .burger {
      width: 42px;
      height: 42px;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      cursor: pointer;
    }

    .burger span {
      width: 18px;
      height: 2px;
      background: var(--text);
      transition: .2s ease;
    }

    .burger[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }

    .burger[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    .burger[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-menu {
      display: none;
      padding-bottom: 18px;
    }

    .mobile-menu.open {
      display: block;
    }

    .mobile-panel {
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: rgba(255,255,255,.88);
      box-shadow: var(--shadow);
    }

    .mobile-panel a {
      display: block;
      padding: 12px 0;
      border-bottom: 1px solid #eee1d1;
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .mobile-panel a:last-child {
      border-bottom: 0;
    }

    .mobile-panel a:hover {
      color: var(--accent);
    }

    /* HERO */

    .hero {
      padding: 38px 0 36px;
      scroll-margin-top: 90px;
    }

    .hero__grid {
      display: grid;
      grid-template-columns: 1.05fr 1.15fr;
      align-items: center;
      gap: 32px;
    }

    .hero__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 18px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .hero__eyebrow::before {
      width: 28px;
      height: 2px;
      display: block;
      background: var(--accent);
      content: "";
    }

    .hero__title {
      max-width: 620px;
      color: var(--text);
      font-size: clamp(46px, 5vw, 64px);
      font-weight: 900;
      line-height: .95;
      letter-spacing: -.045em;
      text-transform: uppercase;
    }

    .hero__title .accent {
      display: block;
      color: var(--accent);
    }

    /* FIX: Hero H1 uses the same handwritten font as the existing
       "От идеи до монтажа" inscription elsewhere on the site. */
    .hero__title--script {
      max-width: 680px;
      font-family: "Marck Script", cursive;
      font-size: clamp(58px, 6.2vw, 88px);
      font-weight: 400;
      line-height: .9;
      letter-spacing: 0;
      text-transform: none;
    }

    .hero__subtitle {
      max-width: 520px;
      margin-top: 18px;
      font-size: clamp(21px, 2.15vw, 27px);
      font-weight: 900;
      line-height: 1.05;
      text-transform: uppercase;
    }

    .hero__text {
      max-width: 500px;
      margin-top: 16px;
      color: var(--muted);
      font-size: 15px;
    }

    .hero__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 26px;
    }

    .hero__actions .btn {
      min-width: 170px;
    }

    .hero__benefits {
      max-width: 620px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 32px;
    }

    .benefit-mini {
      min-height: 82px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 14px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: rgba(255,255,255,.55);
    }

    .benefit-mini__icon,
    .why-icon {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--accent);
      background: #fff;
      font-weight: 900;
    }

    .benefit-mini__text {
      font-size: 12px;
      font-weight: 800;
      line-height: 1.25;
    }

    .hero-visual {
      position: relative;
      min-height: 0;
      height: 100%;
      overflow: hidden;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .hero-visual img {
      width: 100%;
      height: 100%;
      min-height: 0;
      object-fit: contain;
      object-position: center;
    }

    .note {
      position: absolute;
      z-index: 2;
      padding: 0;
      border: 0;
      border-radius: 0;
      color: var(--text);
      background: transparent;
      font-family: "Marck Script", cursive;
      font-size: 30px;
      line-height: 1.05;
      white-space: nowrap;
    }

    .note--top {
      top: 18%;
      left: 20px;
      right: auto;
      transform: rotate(-4deg);
    }

    .note--bottom {
      right: auto;
      bottom: 18%;
      left: 22px;
      transform: rotate(3deg);
    }

    .hero-sticker {
      position: absolute;
      bottom: 20px;
      left: 20px;
      padding: 10px 14px;
      border-radius: 10px;
      color: #fff;
      background: rgba(35,32,29,.82);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    /* CATALOG */

    .catalog-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: rgba(255,255,255,.62);
      box-shadow: var(--shadow);
    }

    .catalog-card {
      min-height: 214px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      text-align: center;
      background: rgba(255,255,255,.55);
      transition: .2s ease;
    }

    .catalog-card:nth-child(5n) {
      border-right: 0;
    }

    .catalog-card:nth-last-child(-n + 5) {
      border-bottom: 0;
    }

    .catalog-card:hover {
      background: #fff;
    }

    .catalog-card img {
      width: 100%;
      height: 120px;
      object-fit: cover;
      border: 1px solid #eadcca;
      border-radius: 10px;
      background: #fff;
    }

    .catalog-card h3 {
      margin-top: 14px;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.15;
      text-transform: uppercase;
    }

    /* PROCESS */

    .process-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .process-card {
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: rgba(255,255,255,.62);
      box-shadow: var(--shadow);
    }


/* Final consistent line icons */
.ui-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.process-card__num {
  width: 46px;
  height: 46px;
  min-height: 46px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent);
  background: #fff;
}


    .process-card__image {
      height: 180px;
      overflow: hidden;
      margin-bottom: 14px;
      border: 1px solid #eadcca;
      border-radius: 12px;
      background: #fff;
    }

    .process-card__image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .process-card h3 {
      margin-bottom: 8px;
      font-size: 22px;
      font-weight: 900;
    }

    .process-card p {
      color: var(--muted);
      font-size: 14px;
    }

    /* PRODUCTION */

    .production-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 12px;
    }

    .production-card,
    .portfolio-card,
    .why-card,
    .cta-tag {
      border: 1px solid var(--border);
      border-radius: 16px;
      background: rgba(255,255,255,.65);
      box-shadow: var(--shadow);
    }

    .production-card {
      overflow: hidden;
    }

    .production-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    .production-card div {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 10px 14px;
      text-align: center;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.15;
      text-transform: uppercase;
    }

    /* VIDEO */

    .video-box {
      position: relative;
      overflow: hidden;
      min-height: 420px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: #221f1c;
      box-shadow: var(--shadow);
    }

    .video-placeholder {
      min-height: 420px;
      display: grid;
      place-items: center;
      padding: 30px;
      color: rgba(255,255,255,.8);
      text-align: center;
      background:
        linear-gradient(rgba(34,31,28,.72), rgba(34,31,28,.72)),
        url("images/video-poster.jpg") center / cover;
    }

    .video-placeholder strong {
      display: block;
      margin-bottom: 8px;
      color: #fff;
      font-size: 22px;
      text-transform: uppercase;
    }

    .video-caption {
      position: absolute;
      right: 24px;
      bottom: 24px;
      left: 24px;
      width: fit-content;
      padding: 12px 16px;
      border-radius: 12px;
      color: #fff;
      background: rgba(35,32,29,.78);
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
    }

    /* PORTFOLIO */

    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .portfolio-card {
      overflow: hidden;
      transition: .2s ease;
    }

    .portfolio-card:hover {
      transform: translateY(-2px);
    }

    .portfolio-card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
    }

    .portfolio-card__body {
      padding: 16px;
    }

    .portfolio-card h3 {
      margin-bottom: 8px;
      font-size: 17px;
      font-weight: 900;
      line-height: 1.15;
      text-transform: uppercase;
    }

    .portfolio-card p {
      color: var(--muted);
      font-size: 14px;
    }

    /* TRUST */

    .trust {
      padding: 24px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: rgba(255,255,255,.62);
      box-shadow: var(--shadow);
    }

    .trust-intro {
      max-width: 720px;
      margin: 0 auto 22px;
      color: var(--muted);
      text-align: center;
    }

    .brands {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }

    .brand-client {
      min-height: 82px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
      font-size: 14px;
      font-weight: 900;
      text-align: center;
    }

    .brand-client--placeholder {
      color: var(--muted);
      font-weight: 700;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 18px;
    }

    .stat {
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: #fff;
      text-align: center;
    }

    .stat strong {
      display: block;
      color: var(--accent);
      font-size: 34px;
      font-weight: 900;
      line-height: 1;
    }

    .stat span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    /* WHY */

    .why-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 12px;
    }

    .why-card {
      min-height: 206px;
      padding: 18px 14px;
    }

    .why-icon {
      width: 46px;
      height: 46px;
      margin-bottom: 12px;
    }

    .why-card h3 {
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.15;
      text-transform: uppercase;
    }

    .why-card p {
      color: var(--muted);
      font-size: 13px;
    }

    /* CTA */

    .cta-box {
      display: grid;
      grid-template-columns: 1.05fr 1.1fr .7fr;
      align-items: center;
      gap: 18px;
      padding: 22px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: rgba(255,255,255,.6);
      box-shadow: var(--shadow);
    }

    .cta-illustration {
      min-height: 360px;
      overflow: hidden;
      border: 1px solid #eadcca;
      border-radius: 18px;
      background: #fff;
    }

    .cta-illustration img {
      width: 100%;
      height: 100%;
      min-height: 360px;
      object-fit: cover;
    }

    .cta-main h2 {
      margin-bottom: 10px;
      font-size: clamp(38px, 4.2vw, 56px);
      font-weight: 900;
      line-height: .95;
      text-transform: uppercase;
    }

    .cta-main .accent-line {
      display: block;
      color: var(--accent);
    }

    .cta-main p {
      max-width: 520px;
      margin-bottom: 24px;
      color: var(--muted);
      font-size: 16px;
    }

    .cta-tags {
      display: grid;
      gap: 12px;
    }

    .cta-tag {
      padding: 16px;
      background: #fffdf9;
    }

    .cta-tag strong {
      display: block;
      margin-bottom: 4px;
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .cta-tag span {
      color: var(--muted);
      font-size: 13px;
    }


    /* S|E PROCESS GRAPHIC — CTA — refined only */
    .lead-process {
      position: relative;
      margin-top: 34px;
      padding: 18px 4px 8px;
      min-height: 188px;
      overflow: hidden;
    }

    .lead-process__curve {
      position: absolute;
      z-index: 0;
      top: 26px;
      left: 1%;
      width: 98%;
      height: 86px;
      overflow: visible;
      pointer-events: none;
    }

    .lead-process__curve path {
      fill: none;
      stroke: rgba(65,60,55,.46);
      stroke-width: 1.35;
      stroke-linecap: round;
      stroke-dasharray: 7 7;
      stroke-dashoffset: 0;
      animation: leadProcessDraw 3.2s ease-in-out infinite alternate;
    }

    .lead-process__curve .accent-path {
      stroke: rgba(234,122,26,.72);
      stroke-width: 1.8;
      stroke-dasharray: 2 10;
      animation-delay: .35s;
    }

    .lead-process__steps {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      min-height: 150px;
    }

    .lead-process__step {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      min-width: 0;
      text-align: center;
    }

    .lead-process__mark {
      width: 62px;
      height: 62px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(65,60,55,.34);
      border-radius: 50%;
      color: var(--accent);
      background: rgba(255,255,255,.96);
      box-shadow: 0 7px 18px rgba(35,32,29,.07);
      transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
      animation: leadProcessFloat 3.4s ease-in-out infinite;
    }

    .lead-process__step:nth-child(2) .lead-process__mark { animation-delay: .25s; }
    .lead-process__step:nth-child(3) .lead-process__mark { animation-delay: .5s; }
    .lead-process__step:nth-child(4) .lead-process__mark { animation-delay: .75s; }

    .lead-process__mark .ui-icon {
      width: 28px;
      height: 28px;
      stroke-width: 1.45;
    }

    .lead-process__step:first-child .lead-process__mark,
    .lead-process__step:last-child .lead-process__mark {
      border-color: rgba(234,122,26,.68);
    }

    .lead-process__step:hover .lead-process__mark {
      transform: translateY(-4px) scale(1.04);
      border-color: rgba(234,122,26,.72);
      box-shadow: 0 10px 24px rgba(234,122,26,.14);
    }

    .lead-process__label {
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .07em;
      line-height: 1.15;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .lead-process__scribble {
      position: absolute;
      z-index: 3;
      right: 3%;
      bottom: 8px;
      color: rgba(234,122,26,.78);
      font-family: "Marck Script", cursive;
      font-size: 24px;
      font-weight: 400;
      line-height: 1.15;
      letter-spacing: 0;
      white-space: nowrap;
      transform: rotate(-3deg);
    }

    @keyframes leadProcessDraw {
      from { stroke-dashoffset: 0; }
      to { stroke-dashoffset: -42; }
    }

    @keyframes leadProcessFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-3px); }
    }

    /* FORM */

    .lead {
      margin-top: 22px;
      padding: 28px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: rgba(255,255,255,.7);
      box-shadow: var(--shadow);
      scroll-margin-top: 100px;
    }

    .lead__top {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      align-items: start;
      gap: 26px;
    }

    .lead__title {
      margin-bottom: 12px;
      font-size: 34px;
      font-weight: 900;
      line-height: 1;
      text-transform: uppercase;
    }

    .lead__title span {
      color: var(--accent);
    }

    .lead__text {
      color: var(--muted);
      font-size: 15px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .form-grid .full {
      grid-column: 1 / -1;
    }

    .field-label {
      display: block;
      margin-bottom: 6px;
      color: var(--text);
      font-size: 12px;
      font-weight: 800;
    }

    .input,
    .textarea {
      width: 100%;
      border: 1px solid #d8c7b5;
      border-radius: 12px;
      outline: none;
      padding: 14px 15px;
      color: var(--text);
      background: #fff;
      font-size: 14px;
    }

    .input:focus,
    .textarea:focus {
      border-color: var(--accent);
    }

    .textarea {
      min-height: 108px;
      resize: vertical;
    }

    .file-label {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 13px 15px;
      border: 1px dashed #c9b8a5;
      border-radius: 12px;
      color: var(--muted);
      background: #fff;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .file-label:hover {
      border-color: var(--accent);
      color: var(--text);
    }

    .file-label input {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .agree {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 14px;
      color: var(--muted);
      font-size: 12px;
    }

    .agree input {
      flex: 0 0 auto;
      margin-top: 2px;
      accent-color: var(--accent);
    }

    .agree a {
      text-decoration: underline;
    }

    .form-note {
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
    }

    .form-status {
      display: none;
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
    }

    .form-status.success,
    .form-status.error {
      display: block;
    }

    .form-status.success {
      color: #1d6d2a;
      border: 1px solid #bde3c3;
      background: #edf9ef;
    }

    .form-status.error {
      color: #a13a2c;
      border: 1px solid #f0c0b8;
      background: #fff1ef;
    }

    /* CONTACTS */

    .contacts-grid {
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      gap: 18px;
    }

    .contact-card {
      padding: 24px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: rgba(255,255,255,.65);
      box-shadow: var(--shadow);
    }

    .contact-card h2 {
      margin-top: 6px;
      font-size: 32px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .contact-list {
      list-style: none;
      margin-top: 16px;
    }

    .contact-list li {
      margin: 10px 0;
      color: var(--muted);
    }

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

    .contact-list a:hover {
      color: var(--accent);
    }

.contact-list a,
.footer a {
  transition: color .2s ease;
}
.contact-icon {
  display: inline-flex;
  vertical-align: -4px;
  margin-right: 6px;
  color: var(--accent);
}
.contact-icon .ui-icon {
  width: 16px;
  height: 16px;
}


    .map-wrap {
      min-height: 330px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: #eee;
    }

    .map-placeholder {
      min-height: 330px;
      display: grid;
      place-items: center;
      padding: 24px;
      color: var(--muted);
      text-align: center;
      background: #f1ebe4;
    }

    .map-placeholder strong {
      display: block;
      margin-bottom: 8px;
      color: var(--text);
      font-size: 20px;
    }

    /* FOOTER */

    .footer {
      padding: 44px 0 34px;
      border-top: 1px solid var(--border);
    }

    .footer__grid {
      display: grid;
      grid-template-columns: 1.2fr .8fr .8fr;
      gap: 24px;
    }

    .footer h3 {
      margin-bottom: 10px;
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .footer p,
    .footer li {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .footer ul {
      list-style: none;
    }

    .footer a:hover {
      color: var(--accent);
    }

    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 10px;
      margin-top: 24px;
      padding-top: 18px;
      border-top: 1px solid var(--border);
      color: var(--muted);
      font-size: 12px;
    }

    /* FLOATING BUTTONS */

    .floating {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 1200;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .floating a {
      width: 54px;
      height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: #fff;
      box-shadow: 0 12px 30px rgba(0,0,0,.18);
      font-size: 22px;
      transition: transform .2s ease;
    }

    .floating a:hover {
      transform: translateY(-2px);
    }

    .floating .tg {
      background: #229ed9;
    }

    .floating .wa {
      background: #25d366;
    }

    /* POLICY */

    .policy-modal {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(35,32,29,.45);
    }

    .policy-modal.show {
      display: flex;
    }

    .policy-box {
      position: relative;
      width: min(760px, 100%);
      max-height: 82vh;
      overflow: auto;
      padding: 26px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: #fffdf9;
      box-shadow: var(--shadow);
    }

    .policy-box h3 {
      margin-bottom: 14px;
      font-size: 24px;
      font-weight: 900;
    }

    .policy-box p {
      margin-bottom: 12px;
    }

    .policy-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 38px;
      height: 38px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      font-size: 20px;
      cursor: pointer;
    }

    /* ANIMATION */

    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .6s ease, transform .6s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
    }

    /* TABLET */

    @media (max-width: 1280px) {
      .header__inner {
        gap: 12px;
      }

      .brand {
        gap: 9px;
      }

      .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 18px;
      }

      .brand-text em {
        font-size: 15px;
      }

      .brand-text span {
        font-size: 9px;
      }

      .nav {
        gap: 10px;
      }

      .nav a {
        font-size: 10px;
      }

      .phone-link {
        font-size: 12px;
      }
    }

    @media (max-width: 1080px) {
      .nav,
      .header-actions {
        display: none;
      }

      .header__inner {
        display: flex;
        justify-content: space-between;
      }

      .burger {
        display: inline-flex;
      }

      .hero__grid,
      .cta-box,
      .lead__top,
      .footer__grid,
      .contacts-grid {
        grid-template-columns: 1fr;
      }

      .hero__title {
        font-size: 54px;
      }

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

      .catalog-card:nth-child(5n) {
        border-right: 1px solid var(--border);
      }

      .catalog-card:nth-child(3n) {
        border-right: 0;
      }

      .catalog-card:nth-last-child(-n + 5) {
        border-bottom: 1px solid var(--border);
      }

      .catalog-card:nth-last-child(-n + 3) {
        border-bottom: 0;
      }

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

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

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

      .cta-illustration,
      .cta-illustration img {
        min-height: 300px;
      }
    }

    /* MOBILE */

    @media (max-width: 760px) {
      .container {
        width: min(var(--container), calc(100% - 24px));
      }

      .section {
        padding: 54px 0;
      }

      .header__inner {
        min-height: 74px;
      }

      .brand-text em {
        font-size: 14px;
      }

      .brand-text span {
        font-size: 8px;
      }

      .hero {
        padding-top: 28px;
      }

      .hero__title {
        font-size: 39px;
      }

      .hero__subtitle {
        font-size: 21px;
      }

      .hero__text {
        font-size: 14px;
      }

      .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
      }

      .hero__actions .btn {
        width: 100%;
      }

      .hero__benefits,
      .catalog-grid,
      .process-grid,
      .production-grid,
      .portfolio-grid,
      .why-grid,
      .form-grid,
      .brands,
      .stats {
        grid-template-columns: 1fr;
      }

      .hero-visual {
        min-height: 360px;
      }

      .hero-visual img {
        min-height: 360px;
      }

      .note {
        font-size: 22px;
      }

      .section-head {
        align-items: flex-start;
        gap: 10px;
      }

      .section-head h2 {
        font-size: 28px;
        white-space: normal;
      }

      .section-line {
        margin-top: 14px;
      }

      .catalog-card {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border) !important;
      }

      .catalog-card:last-child {
        border-bottom: 0 !important;
      }

      .catalog-card img {
        height: 180px;
      }

      .process-card__image,
      .portfolio-card img {
        height: auto;
        aspect-ratio: 16 / 10;
      }

      .production-card img {
        height: auto;
        aspect-ratio: 16 / 10;
      }

      .cta-main h2 {
        font-size: 35px;
      }

      .lead {
        padding: 20px;
      }

      .lead__title {
        font-size: 28px;
      }

      .form-grid .full {
        grid-column: auto;
      }

      .agree {
        font-size: 11px;
      }

      .video-box,
      .video-placeholder {
        min-height: 260px;
        height: 260px;
      }

      .video-caption {
        right: 14px;
        bottom: 14px;
        left: 14px;
        font-size: 11px;
      }

      .map-wrap,
      .map-placeholder {
        min-height: 280px;
        height: 280px;
      }

      .floating {
        right: 12px;
        bottom: 12px;
      }

      .floating a {
        width: 50px;
        height: 50px;
      }

      .policy-box {
        padding: 22px;
      }

      .lead-process {
        margin-top: 24px;
        padding-inline: 0;
        min-height: 170px;
      }

      .lead-process__curve {
        top: 23px;
        left: 0;
        width: 100%;
        height: 76px;
      }

      .lead-process__steps {
        gap: 4px;
        min-height: 138px;
      }

      .lead-process__mark {
        width: 46px;
        height: 46px;
      }

      .lead-process__mark .ui-icon {
        width: 22px;
        height: 22px;
      }

      .lead-process__label {
        font-size: 8px;
        letter-spacing: .035em;
        white-space: normal;
      }

      .lead-process__scribble {
        right: 2px;
        bottom: 6px;
        font-size: 18px;
        white-space: nowrap;
      }

      .hero__title--script {
        font-size: 54px;
      }
    }

    /* FINAL HERO IMAGE + PREMIUM MOTION — current S|E approved design only */
    .hero {
      padding: 30px 0 28px;
    }

    .hero__title--script {
      color: var(--accent);
    }

    /* FINAL HERO BANNER — height follows the complete left content block */
    .hero__grid {
      align-items: stretch;
    }

    .hero-visual {
      min-height: 0;
      height: 100%;
      aspect-ratio: auto;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .hero-visual img {
      width: 100%;
      height: 100%;
      min-height: 0;
      aspect-ratio: auto;
      object-fit: contain;
      object-position: center;
    }

    /* FINAL HERO NOTES — text only, no cards or background panels */
    .hero-visual .note {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .hero-visual .note--top {
      top: 18%;
      right: auto;
      left: 20px;
    }

    .hero-visual .note--bottom {
      right: auto;
      bottom: 18%;
      left: 22px;
    }

    .section-head h2 {
      color: var(--accent);
      font-family: "Marck Script", cursive;
      font-size: 42px;
      font-weight: 400;
      line-height: .95;
      letter-spacing: 0;
      text-transform: none;
    }

    .section-line {
      background: var(--accent);
      opacity: .72;
    }

    /* Subtle living technical background */
    body::before {
      animation: technicalDrift 22s ease-in-out infinite alternate;
      will-change: background-position, opacity;
    }

    body::after {
      animation: technicalRing 16s ease-in-out infinite alternate;
      will-change: transform, opacity;
    }

    @keyframes technicalDrift {
      from {
        background-position: 6% 4%, 86% 34%, 24% 88%;
        opacity: .28;
      }
      to {
        background-position: 7.5% 5%, 84% 32%, 25.5% 86%;
        opacity: .36;
      }
    }

    @keyframes technicalRing {
      from {
        transform: translate3d(0, 0, 0) rotate(18deg);
        opacity: .18;
      }
      to {
        transform: translate3d(-10px, 8px, 0) rotate(22deg);
        opacity: .26;
      }
    }

    /* Hero: restrained sequential entrance */
    .hero.reveal:not(.visible) .hero__eyebrow,
    .hero.reveal:not(.visible) .hero__title,
    .hero.reveal:not(.visible) .hero__text,
    .hero.reveal:not(.visible) .hero__actions,
    .hero.reveal:not(.visible) .hero__benefits,
    .hero.reveal:not(.visible) .hero-visual {
      opacity: 0;
      transform: translateY(12px);
      transition:
        opacity .65s ease,
        transform .65s cubic-bezier(.22,.61,.36,1);
    }

    .hero.visible .hero__eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
    .hero.visible .hero__title { opacity: 1; transform: none; transition-delay: .14s; }
    .hero.visible .hero__text { opacity: 1; transform: none; transition-delay: .24s; }
    .hero.visible .hero__actions { opacity: 1; transform: none; transition-delay: .34s; }
    .hero.visible .hero__benefits { opacity: 1; transform: none; transition-delay: .44s; }
    .hero.visible .hero-visual { opacity: 1; transform: none; transition-delay: .18s; }

    /* Section entrance + staggered content */
    .section.reveal:not(.visible) .section-head,
    .section.reveal:not(.visible) .catalog-card,
    .section.reveal:not(.visible) .process-card,
    .section.reveal:not(.visible) .production-card,
    .section.reveal:not(.visible) .video-box,
    .section.reveal:not(.visible) .portfolio-card,
    .section.reveal:not(.visible) .trust,
    .section.reveal:not(.visible) .why-card {
      opacity: 0;
      transform: translateY(14px);
    }

    .section.visible .section-head,
    .section.visible .catalog-card,
    .section.visible .process-card,
    .section.visible .production-card,
    .section.visible .video-box,
    .section.visible .portfolio-card,
    .section.visible .trust,
    .section.visible .why-card {
      opacity: 1;
      transform: none;
      transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.22,.61,.36,1);
    }

    .section.visible .catalog-card:nth-child(2),
    .section.visible .process-card:nth-child(2),
    .section.visible .production-card:nth-child(2),
    .section.visible .portfolio-card:nth-child(2),
    .section.visible .why-card:nth-child(2) { transition-delay: .06s; }

    .section.visible .catalog-card:nth-child(3),
    .section.visible .process-card:nth-child(3),
    .section.visible .production-card:nth-child(3),
    .section.visible .portfolio-card:nth-child(3),
    .section.visible .why-card:nth-child(3) { transition-delay: .12s; }

    .section.visible .catalog-card:nth-child(4),
    .section.visible .process-card:nth-child(4),
    .section.visible .production-card:nth-child(4),
    .section.visible .portfolio-card:nth-child(4),
    .section.visible .why-card:nth-child(4) { transition-delay: .18s; }

    .section.visible .catalog-card:nth-child(5),
    .section.visible .process-card:nth-child(5),
    .section.visible .production-card:nth-child(5),
    .section.visible .portfolio-card:nth-child(5),
    .section.visible .why-card:nth-child(5) { transition-delay: .24s; }

    .section.visible .catalog-card:nth-child(6),
    .section.visible .process-card:nth-child(6),
    .section.visible .production-card:nth-child(6),
    .section.visible .portfolio-card:nth-child(6),
    .section.visible .why-card:nth-child(6) { transition-delay: .30s; }

    /* Premium card interaction */
    .catalog-card,
    .process-card,
    .production-card,
    .portfolio-card,
    .why-card,
    .brand-client,
    .stat,
    .cta-tag {
      transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease,
        background-color .28s ease,
        opacity .6s ease;
    }

    .catalog-card:hover,
    .process-card:hover,
    .production-card:hover,
    .portfolio-card:hover,
    .why-card:hover,
    .brand-client:hover,
    .stat:hover,
    .cta-tag:hover {
      transform: translateY(-3px);
      border-color: rgba(234,122,26,.42);
      box-shadow: 0 14px 32px rgba(35,32,29,.10);
    }

    .benefit-mini,
    .benefit-mini__icon,
    .why-icon,
    .process-card__num {
      transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    }

    .benefit-mini:hover .benefit-mini__icon,
    .why-card:hover .why-icon,
    .process-card:hover .process-card__num {
      transform: translateY(-2px) scale(1.04);
      border-color: rgba(234,122,26,.55);
      box-shadow: 0 8px 20px rgba(234,122,26,.12);
    }

    .btn {
      transition:
        transform .28s ease,
        background-color .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
    }

    .btn:hover {
      box-shadow: 0 10px 26px rgba(234,122,26,.18);
    }

    .hero-visual {
      transition:
        opacity .65s ease,
        transform .65s cubic-bezier(.22,.61,.36,1),
        box-shadow .35s ease;
    }

    .hero-visual:hover {
      box-shadow: none;
    }

    @media (max-width: 760px) {
      .hero {
        padding-top: 24px;
        padding-bottom: 24px;
      }

      .hero-visual,
      .hero-visual img {
        aspect-ratio: 3 / 2;
        min-height: 0;
      }

      .hero-visual {
        height: auto;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
      }

      .hero-visual .note--top {
        top: 14%;
        left: 14px;
      }

      .hero-visual .note--bottom {
        bottom: 14%;
        left: 14px;
      }

      .section-head h2 {
        font-size: 32px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      body::before,
      body::after {
        animation: none !important;
      }

      .hero.reveal:not(.visible) .hero__eyebrow,
      .hero.reveal:not(.visible) .hero__title,
      .hero.reveal:not(.visible) .hero__text,
      .hero.reveal:not(.visible) .hero__actions,
      .hero.reveal:not(.visible) .hero__benefits,
      .hero.reveal:not(.visible) .hero-visual,
      .section.reveal:not(.visible) .section-head,
      .section.reveal:not(.visible) .catalog-card,
      .section.reveal:not(.visible) .process-card,
      .section.reveal:not(.visible) .production-card,
      .section.reveal:not(.visible) .video-box,
      .section.reveal:not(.visible) .portfolio-card,
      .section.reveal:not(.visible) .trust,
      .section.reveal:not(.visible) .why-card {
        opacity: 1 !important;
        transform: none !important;
      }
    }


    /* FINAL S|E HERO BANNER — TЗ: точечная адаптация существующего баннера */
    .hero__grid {
      align-items: stretch;
    }

    .hero-visual {
      height: 100%;
      min-height: 0;
      overflow: hidden;
      background: var(--bg);
      border: 0;
      border-radius: 16px;
      box-shadow: none;
    }

    .hero-visual img {
      width: 100%;
      height: 100%;
      min-height: 0;
      object-fit: contain;
      object-position: center;
    }

    /* Только положение надписей; сами надписи остаются текстом без фона. */
    .hero-visual .note {
      color: var(--accent);
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    .hero-visual .note--top {
      top: 15%;
      left: 20px;
      right: auto;
    }

    .hero-visual .note--bottom {
      bottom: 14%;
      left: 22px;
      right: auto;
    }

    @media (max-width: 760px) {
      .hero-visual {
        height: auto;
        min-height: 360px;
        aspect-ratio: 3 / 2;
        border-radius: 16px;
        background: var(--bg);
      }

      .hero-visual img {
        height: 100%;
        min-height: 0;
        object-fit: contain;
      }

      .hero-visual .note--top {
        top: 12%;
        left: 14px;
      }

      .hero-visual .note--bottom {
        bottom: 11%;
        left: 14px;
      }
    }

  
    /* FINAL HERO BANNER — image removed; container remains aligned and responsive */
    .hero__grid {
      align-items: stretch;
    }

    .hero-visual {
      min-height: 0;
      height: 100%;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: rgba(255,255,255,.18);
      box-shadow: none;
    }

    @media (max-width: 1080px) {
      .hero-visual {
        height: auto;
        min-height: 320px;
      }
    }

    @media (max-width: 760px) {
      .hero-visual {
        width: 100%;
        min-height: clamp(240px, 58vw, 320px);
        height: auto;
        border-radius: 20px;
      }

      .hero-visual .note--top {
        top: 22%;
        left: 18px;
      }

      .hero-visual .note--bottom {
        bottom: 22%;
        left: 18px;
      }
    }



/* v2.1 visual-match hardening: prevent browser broken-image glyphs from altering the HTML layout. */
img { font-size: 0; }
img[alt] { min-width: 0; }


/* v2.2 visual correction: the approved HTML uses Marck Script for handwritten orange text. */
.scribble,
.brand-text em,
.hero__title--script,
.note,
.section-head h2,
.lead-process__scribble {
  font-family: "Marck Script", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-mark img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}

/* v2.4 editable media layer: visual defaults remain those of v2.3/approved HTML. */
.hero-visual picture { display:block; width:100%; height:100%; }
.hero-visual .hero-banner-media { width:100%; height:100%; min-height:0; object-fit:contain; object-position:center; display:block; }
.hero-visual video.hero-banner-media { background:transparent; }
.hero-visual .note--top { color:var(--se-note-top-color, var(--text)); font-size:var(--se-note-top-size,30px); top:var(--se-note-top-pos,18%); }
.hero-visual .note--bottom { color:var(--se-note-bottom-color, var(--text)); font-size:var(--se-note-bottom-size,30px); bottom:var(--se-note-bottom-pos,18%); }
@media (max-width: 767px) {
  .hero-visual .note--top { font-size:var(--se-note-top-mobile-size, clamp(19px,5vw,24px)); top:14%; left:14px; }
  .hero-visual .note--bottom { font-size:var(--se-note-bottom-mobile-size, clamp(19px,5vw,24px)); bottom:13%; left:14px; }
  .hero-visual .hero-banner-media { object-fit:contain; object-position:center; }
}


/* 2.4.1 final audit: media must fill the approved containers without changing their design. */
.hero-visual picture,
.hero-visual .hero-banner-media {
  display:block;
  width:100%;
  height:100%;
}

.video-box > video.production-video {
  display:block;
  width:100%;
  height:100%;
  min-height:420px;
  max-width:none;
  object-fit:cover;
  background:#221f1c;
}

.map-wrap {
  position:relative;
  width:100%;
  height:450px;
  min-height:0;
  overflow:hidden;
}

.yandex-map-container {
  width:100%;
  height:100%;
  min-height:100%;
}

.map-wrap iframe {
  display:block;
  width:100% !important;
  height:100% !important;
  border:0;
}

@media (max-width:760px) {
  .video-box > video.production-video {
    min-height:260px;
    height:260px;
  }
  .map-wrap,
  .yandex-map-container {
    height:280px;
    min-height:280px;
  }
}

/* Technical lightbox: does not alter the portfolio grid before opening. */
.portfolio-lightbox {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.ce-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  background: rgba(0,0,0,.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.ce-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ce-lightbox__image {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pan-y;
}

.ce-lightbox__close,
.ce-lightbox__prev,
.ce-lightbox__next {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ce-lightbox__close {
  top: 16px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 40px;
  line-height: 1;
}

.ce-lightbox__prev,
.ce-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 70px;
  font-size: 58px;
  line-height: 1;
}

.ce-lightbox__prev { left: 14px; }
.ce-lightbox__next { right: 14px; }

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

@media (max-width: 760px) {
  .ce-lightbox { padding: 15px; }
  .ce-lightbox__image { max-width: 100%; max-height: 85vh; }
  .ce-lightbox__close { top: 8px; right: 10px; }
  .ce-lightbox__prev,
  .ce-lightbox__next { width: 40px; font-size: 44px; }
  .ce-lightbox__prev { left: 2px; }
  .ce-lightbox__next { right: 2px; }
}
