:root {
    /* Основные цвета фона */
    --bg-main: #00000C;
    --bg-surface: #111116;
    --bg-surface-secondary: #191924;
    --bg-surface-hover: #121217;
    --bg-dropdown: #0b0b0e;

    /* Текст */
    --text-main: #FFFFFF;
    --text-muted: #AAAAB4;
    --text-subtle: #65656D;

    /* Рамки и разделители */
    --border-color: #1C1C21;
    --border-color-muted: #333338;
    --border-input: #65656D;
    --border-strong: #3C3C41;
    --border-top: #1C1C21;
    --border-bot: rgba(0, 0, 0, 0.8);

    /* Акценты (Бренд) */
    --accent: #1E90FF;
    --accent-hover: #157DEC;
    --accent-gradient-start: #77BCFF;
    --accent-gradient-end: #359BFF;

    /* Ошибки */
    --error-color: #CB0205;
    --error-color-light: #FF4D4D;

    /* Оверлеи и тени */
    --overlay-bg: rgba(0, 0, 12, 0.8);
    --overlay-popup: rgba(0, 0, 12, 0.7);

     --grid-color: rgba(255, 255, 255, 0.15); /* Цвет сетки в темной теме */
}

/* Светлая тема */
[data-theme="light"] {

    --grid-color: rgba(0, 0, 0, 0.1); /* Цвет сетки в светлой теме */

    --bg-main: #FFF;
    --bg-surface: #F4F4F6;
    --bg-surface-secondary: #E5E5EA;
    --bg-surface-hover: #F0F0F3;
    --bg-dropdown: #FFFFFF;

    --text-main: #111116;
    --text-muted: #6E6E73;
    --text-subtle: #8E8E93;

    --border-color: #E5E5EA;
    --border-color-muted: #D1D1D6;
    --border-input: #C7C7CC;
    --border-strong: #AEAEB2;
    --border-top: rgba(255, 255, 255, .8);
    --border-bot: #E5E5EA;

    /* Акценты (Бренд) */
    --accent: #1E90FF;
    --accent-hover: #157DEC;
    --accent-gradient-start: #77BCFF;
    --accent-gradient-end: #359BFF;

    --error-color: #FF3B30;
    --error-color-light: #FF453A;

    --overlay-bg: rgba(255, 255, 255, 0.8);
    --overlay-popup: rgba(0, 0, 0, 0.4);
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.3s ease, border 0.3s ease, background 0.3s ease;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.icon-copy{
    opacity: .6;
}

.third-cta:hover .icon-copy{
    opacity: 1;
}

.icon-copy-done{
    display: none;
}

.copied .icon-copy-done{
    display: block;
}

.copied .icon-copy{
    display: none;
}

.order-summary{
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    border-top: 1px solid var(--border-strong);
    background-color: var(--bg-surface-secondary);
    border-radius: 20px;
}

.cookies_body{
    position: fixed;
    bottom: -100px;
    z-index: 1000;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, bottom 0.3s ease;
}

.cookies_body.is-visible {
    bottom: 0px;
    opacity: 1;
    pointer-events: auto;
}

.cookies_container{
    display: flex;
    flex-direction: row;
    gap: 20px;
    vertical-align: middle;
    align-items: center;
    padding: 20px;
    border-radius: 40px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.bg-elements{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page{
    position: relative;
    z-index: 2;
}

.circle{
    position: absolute;
    width: 1000px;
    opacity: 0.25;
    height: 1000px;
    border-radius: 100%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.6) 0%, rgba(30, 144, 255, 0) 70%);
    will-change: filter, transform;
}

.nda {
    width: 100%;
    height: calc(100vh - 88px);
    position: fixed;
    bottom: 0;
    z-index: 300;
    background: var(--overlay-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.need-password{
    border: var(--border-input) 1px solid;
    border-radius: 40px;
    padding: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.sr-only{
  position:absolute;
  padding:0;
}

.field{
    max-width: 560px;
}

.btn-container{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.pill{
    width: 100%;
    border-radius: 999px;
    border: var(--border-input) 1px solid;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 20px 20px 20px 40px;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pill input{
  flex: 1 1 auto;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-main);
}

.pill input::placeholder{ color: var(--border-input); }

.pill-btn{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid var(--border-input);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pill-btn img{
    height: 20px;
}

.pill-btn:hover{
    border-color: var(--text-main);
}

.field.is-filled input{
  color: var(--text-main);
}

.field.is-filled .pill-btn{
    background-color: var(--accent);
}

.field.is-error .pill{
  border-color: var(--error-color);
}

.field.is-error .pill-btn{
  background: var(--accent);
  border-color: transparent;
}

.hint{
  margin: 10px 0 0;
  display: none;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--error-color);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1;
}

.field.is-error .hint{ display: inline-block; }

.system-icon{
    height: 48px;
}

button{
    cursor: pointer;
    appearance: none;
}

a{
    text-decoration: none;
}

body{
    background-color: var(--bg-surface);
}

.page{
    width: 100%;
    background-color: var(--bg-main);
    z-index: 1;
    position: relative;
    box-shadow: 0px 16px 40px 0px rgba(0,0,0,0.25);
}

.footer-sentinel{
  height: 1px;
}

.horizontal-flex {
    display: flex;
    flex-direction: row;
    gap: 80px;
    flex-wrap: wrap;
}

.case-content{
    display: flex;
    flex-direction: row;
    gap: 80px;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
}

.footer{
  transform: translateY(-240px);
  position: fixed;
  bottom: 0;
  z-index: 0;
  opacity: 0.5;
  transition: transform 900ms ease, opacity 900ms ease;
  width: 100%;
  background-color: var(--bg-surface);
  padding-left: 100px;
  padding-right: 100px;
  padding-bottom: 100px;
  padding-top: 240px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.page{
    margin-bottom: 800px;
}

.footer.is-revealed{
  transform: translateY(0);
  opacity: 1;
}

.steps{
    display: flex;
    flex-direction: row;
    gap: 80px;
    position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 25px;
  right: 25px;
  height: 2px;
  border-top: 2px dashed var(--border-color-muted);
  z-index: 0;
  width: 75%;
}

.step-count{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 40px;
    background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(to bottom, var(--border-input), var(--bg-surface-secondary)) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow: hidden;
    width: fit-content;
    min-width: 80px;
    height: 60px;
    text-align: center;
}

.burger{
    width: 44px;
    padding: 12px;
    background-color: var(--bg-main);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    height: 44px;
    border: 1px solid var(--border-color-muted);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger:hover{
    border-color: var(--accent);
    transform: scale(1.05);
}

.burger span{
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  opacity: 0.92;
  transition: transform 220ms ease, opacity 180ms ease;
  transform-origin: center;
}

header.is-open .burger span:nth-child(1){
  transform: translateY(5px) rotate(45deg);
}
header.is-open .burger span:nth-child(2){
  opacity: 0;
}
header.is-open .burger span:nth-child(3){
  transform: translateY(-5px) rotate(-45deg);
}

header{
    width: 100%;
    position: fixed;
    top: 0%;
    display: flex;
    flex-direction: column;
    z-index: 200;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-background{
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
    background: var(--overlay-bg)
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
}

header.is-open{
    height: 100vh;
    transition: height 400ms ease;
}

header .horizontal-container-auto{
    height: 88px;
    padding: 20px 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    vertical-align: middle;
}

header.is-open .mobile-menu{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  height: 100vh;
  height: 100dvh;
  transition: opacity 220ms ease, transform 400ms ease, visibility 0s;
}

.mobile-menu{
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 199;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 0 0 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu-button{
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: absolute;
    bottom: 80px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
}

header .border{
    display: block;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color-muted);
}

.mobile-menu .nav-link{
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    text-align: start;
}

.mobile-menu .fourth-cta{
    display: block;
}

#cases{
    padding-top: 0;
    scroll-margin-top: 120px;
}

.nav-link{
    color: var(--text-main);
    opacity: 0.8;
    transition: opacity 0.1s;
}

.nav-link:hover{
    opacity: 1;
}

.logo{
    height: 18px;
}

.card-container-column{
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.card-container{
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.card-spacer{
    background: var(--border-color-muted);
    width: 2px;
    height: 100%;
    border-radius: 10px;
}

.card-intel-grid{
    padding-top: 20px;
    justify-content: space-evenly;
}

.card-content{
    max-width: calc(25% - 32px);
}

.card-content img{
    width: 100%;
}

.vertical-auto{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 40px;
}

.benefits{
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
}

.benefit-card{
    padding: 20px;
    border-radius: 20px;
    background-color: var(--bg-surface);
    border: 1px solid transparent;
    border-top: 1px solid var(--border-top);
    border-bottom: 1px solid var(--border-bot);
}

.benefit-card-m{
    padding: 20px;
    border-radius: 40px;
    background-color: var(--bg-surface);
    border: 1px solid transparent;
    border-top: 1px solid var(--border-top);
    border-bottom: 1px solid var(--border-bot);
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.faq{
    padding-left: 40px;
    padding-right: 40px;
}

.chips{
    padding-top: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.chip{
    padding: 8px 16px;
    background-color: var(--accent);
    border-radius: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.delivarble-card{
    padding: 20px;
    border-radius: 20px;
    background-color: var(--bg-surface);
    border: 1px solid transparent;
    border-top: 1px solid var(--border-top);
    border-bottom: 1px solid var(--border-bot);
    display: flex;
    flex-direction: row;
    gap: 10px;
    vertical-align: middle;
    justify-content: center;
}

.deliverables{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.deliverable-image{
    height: 32px;
}

.card-grid-1{
    width: calc(25% - 20px);
}

.card-grid-2{
    width: calc(50% - 10px);
}

.card-grid-3{
    width: calc(75% - 10px);
}

.card-grid-4{
    width: 100%;
}

.brands-card{
    width: calc(100%/6 - 20px);
}

.brands-card img{
    width: 100%;
}

[data-theme="light"] .brands-card img{
    filter: invert(1); /* Инвертирует цвета: белый станет черным */
}

.plans{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.plan-card{
    padding: 20px;
    padding-top: 40px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-surface);
    gap: 20px;
    width: calc(100%/3 - 20px);
    border: 1px solid transparent;
    border-top: 1px solid var(--border-top);
    border-bottom: 1px solid var(--border-bot);
    flex-shrink: 0 !important;
}

.popular-plan{
    border: 2px solid var(--accent);
    box-shadow: 0px 0px 20px 0px rgba(30, 144, 255, 0.5);
}

.cta-card{
    padding: 40px;
    border-radius: 40px;
    align-items: center;
    max-width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid transparent;
    border-top: 1px solid var(--border-top);
    border-bottom: 1px solid var(--border-bot);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.cta-card-main {
    border: 1px solid transparent;
    background: linear-gradient(var(--accent), var(--accent)) padding-box,
    linear-gradient(to bottom, #77BCFF, #359BFF) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow: hidden;
}

.hero-block{
    display: flex;
    gap: 80px;
    flex-direction: column;
    padding: 100px;
    padding-top: 200px;
}

.landing-section-tile{
    text-align: center;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.service-card-large{
    width: calc(100%/3 - 20px);
    cursor: pointer;
    border: 1px solid transparent;
    border-top: 1px solid var(--border-top);
    border-bottom: 1px solid var(--border-bot);
}

.service-card-small{
    display: flex;
    cursor: pointer;
    width: 100%;
    gap: 20px;
    flex-direction: row;
    justify-content: center;
    vertical-align: middle;
    flex-wrap: nowrap;
    border: 1px solid transparent;
    border-top: 1px solid var(--border-top);
    border-bottom: 1px solid var(--border-bot);
}

.service-card-large:hover{
    border: 1px solid var(--accent);
    transition: border .1s ease;
}

.service-card-small:hover{
    border: 1px solid var(--accent);
    transition: border .1s ease;
}

.service-card-small img{
    aspect-ratio: 1/1;
    width: 120px;
    height: 120px;
}

.service-card-small .vertical-10{
    justify-content: center;
}

.service-grid{
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.case-header{
    width: 100%;
    min-height: 95vh;
    min-height: 95dvh;
    background-size: cover;
    border-radius: 0 0 80px 80px;
    justify-content: end;
    background-position: center;
    padding-bottom: 0px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 100px;
}

.case-header .card-container{
    align-self: flex-start;
}

.case-main-info{
    padding: 240px 100px 40px 100px;
    background: linear-gradient(to top, rgba(0, 0, 12, .6) 0%, rgba(0, 0, 12, 0) 100%);
}

.block-container{
    display: block;
    padding: 100px;
}

.vertical-container{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.horizontal-container{
    display: flex;
    flex-direction: row;
    gap: 80px;
}

.horizontal-container-auto{
    display: flex;
    flex-direction: row;
    gap: 80px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.case-preview{
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.work-examples{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.work-example {
    max-width: calc(100%/3 - 20px);
    aspect-ratio: 1 / 1;
}

.work-example:nth-child(n+4){
    max-width: calc(100%/2 - 20px);
}

.img-ratio-16-10{
    aspect-ratio: 16 / 10;
}

.img-ratio-16-9{
    aspect-ratio: 16 / 9;
}

.img-ratio-1-1{
    aspect-ratio: 1 / 1;
}

.img-ratio-2-1{
    aspect-ratio: 2 / 1;
}

.spacer{
    width: 100%;
    height: 1px;
    background: var(--border-color-muted);
}

.case-image{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 200ms ease;
    background-color: var(--bg-surface);
}

.icon-img{
    width: 160px;
}

.case-preview--stroke::after{
  content:"";
  position:absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(230,230,230,0.4), rgba(25,25,25,0.1));
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.case-button{
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 12, 0.2);
    border: solid 1px rgba(255, 255, 255, 0.4);
    rotate: -45deg;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: border-color 0.3s, background-color 0.3s, rotate 0.3s;
}

.tags{
    display: flex;
    flex-direction: row;
    gap: 5px;
    position: absolute;
    top: 0px;
    left: 20px;
    z-index: 100;
    opacity: 0;
    transition: top 0.3s, opacity 0.3s;
}

.tag-nda{
    position: absolute;
    top: 20px;
    right: 20px;
    height: 24px;
    z-index: 100;
    opacity: 0.5;
    transition: top 0.3s, opacity 0.3s;
}

.case:hover .tag-nda{
    opacity: 1;
}

.case:hover .tags{
    top: 20px;
    opacity: 1;
}

.tag{
    padding: 5px 10px;
    color: var(--text-main);
    background-color: var(--bg-surface);
    border-radius: 20px;
    border: var(--border-color) solid 1px;
    font-size: 14px;
    font-weight: 500;
}

.case:hover .case-button{
    background-color: var(--accent);
    border: solid 1px rgba(255, 255, 255, 0.8);
    rotate: 0deg;
}

.case{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.case:hover .case-image{
    transform: scale(1.05);
}

.case-tags{
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.case-tags .tag{
    padding: 5px 10px;
    color: var(--text-main);
    background-color: var(--bg-surface);
    border-radius: 20px;
    border: #EEE solid 1px;
    font-size: 14px;
    font-weight: 500;
}

.vertical-80{
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.vertical-40{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vertical-20{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vertical-10{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.horizontal-40{
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.horizontal-20{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.horizontal-10{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.wrapper{
    width: calc(100%);
    padding: 100px;
    display: flex;
    flex-direction: row;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.block{
    display: block;
    height: 400px;
    background-color: var(--bg-surface-secondary);
    border-radius: 20px;
    overflow: hidden;
}

.service-control{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.service-description{
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 320ms ease, opacity 300ms ease, transform 300ms ease;
    will-change: max-height;
}

.service-control img { transition: transform 200ms ease; }

.service--opened .service-description{
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.faq-arrow-icon{
    width: 48px;
    height: 48px; /* Убедитесь, что задана высота */
    background-color: var(--text-main); /* Цвет иконки меняется автоматически! */

    /* Подключаем SVG как маску */
    -webkit-mask: url("/static/artmorozov/img/arrow-open.svg") no-repeat center / contain;
    mask: url("/static/artmorozov/img/arrow-open.svg") no-repeat center / contain;

    transition: transform 0.3s ease, background-color 0.2s ease;
}

.service--opened .faq-arrow-icon{
    transform: rotate(180deg);
}

.copyright{
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    text-align: start;
}

.footer-nav{
    transition: color 0.3s;
    text-align: end;
}

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

.services{
    gap: 20px;
    flex-direction: row;
    display: flex;
    align-items: flex-start;
}

.faq-conteiner {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две равные колонки */
    gap: 20px;                             /* Отступы между карточками (по вертикали и горизонтали) */
    align-items: start;                    /* Чтобы карточки разной высоты не тянулись друг за другом */
}

.faq{
    break-inside: avoid;
    padding: 20px;
}

/* CTA styles */
.primary-cta{
    text-wrap: nowrap;
    width: fit-content;
    justify-content: center;
    text-align: center;
    display: flex;
    background-color: var(--accent);
    padding: 20px 40px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 40px;
    background:
        linear-gradient(var(--accent), var(--accent)) padding-box,
        linear-gradient(to bottom, #77BCFF, #359BFF) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow: hidden;
    transition: background 0.3s, filter 0.3s;
}

.primary-cta span{
    text-wrap: nowrap;
}

.primary-cta:hover{
    background:
        linear-gradient(var(--accent), var(--accent)) padding-box,
        linear-gradient(to bottom, #fff, #fff) border-box;
    filter: brightness(110%);
}

.primary-cta:active{
    background:
        linear-gradient(var(--accent), var(--accent)) padding-box,
        linear-gradient(to bottom, #fff, #fff) border-box;
    filter: brightness(90%);
}

.secondary-cta{
    text-wrap: nowrap;
    width: fit-content;
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-main);
    padding: 20px 40px;
    cursor: pointer;
    border: 1px solid var(--border-color-muted);
    border-radius: 40px;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.secondary-cta span{
    text-wrap: nowrap;
}

.secondary-cta:hover{
    border-color: var(--accent);
}

.secondary-cta:active{
    filter: brightness(90%);
}

.third-cta{
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.3s, filter 0.3s, color 0.3s ease;
    align-items: center;
}

.third-cta:hover{
    border-color: var(--text-main);
}


.icon-arrow-link{
    transition: rotate 0.3s ease;
}

.third-cta:hover span{
    color: var(--accent);
}

.third-cta:hover .icon-arrow-link{
    rotate: 45deg;
}

.third-cta:hover .icon-arrow-link-color{
    fill:  var(--accent);
}

.fourth-cta{
    width: fit-content;
    height: fit-content;
    min-height: 44px;
    align-items: center;
    display: flex;
    padding: 7px 20px;
    cursor: pointer;
    border: 1px solid var(--border-color-muted);
    border-radius: 40px;
    background: var(--bg-main);
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.fourth-cta:hover{
    border-color: var(--accent);
    transform: scale(1.05);
}

.tab-container{
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 25px 50px 25px 0;
    scrollbar-width: none;
    height: fit-content;
}

.tab-container::-webkit-scrollbar{
  display: none;
}

.tab-link{
    flex: 0 0 auto;
    white-space: nowrap;
    color: var(--text-main);
    transition: color 0.3s;
    font-weight: 400;
    font-size: 16px;
    width: fit-content;
    padding: 10px 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color-muted);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.tab-link.is-active{
    color: #FFF;
    background: var(--accent);
    border: 1px solid transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tab{
    flex: 0 0 auto;
}

.tab input[type="radio"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab label{
    white-space: nowrap;
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 500;
    font-size: 16px;
    font-family: "Urbanist", sans-serif;
    width: fit-content;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    background:
        linear-gradient(var(--bg-main), var(--bg-main)) padding-box,
        linear-gradient(to bottom, var(--border-input), var(--bg-surface-secondary)) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s, filter 0.3s;
}

.tab:hover label{
    color: var(--text-main);
    background:
        linear-gradient(var(--bg-main), var(--bg-main)) padding-box,
        linear-gradient(to bottom, #fff, #fff) border-box;
}

.tab input[type="radio"] {
    display: none;
}

.tab input[type="radio"]:checked + label {
    color: var(--text-main);
    background:
        linear-gradient(var(--accent), var(--accent)) padding-box,
        linear-gradient(to bottom, #77BCFF, #359BFF) border-box;
}

input[type="radio"]:checked .tab {
    filter: brightness(200%);
}

.mobile-only{
    display: none;
}

.tablet-only{
    display: none;
}

.desktop-only{
    display: none;
}

.photo{
    width: fill-available;
    width: -webkit-fill-available;
    max-width: 100%;
}

.landing-hero{
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    gap: 80px;
    flex-wrap: wrap;
}

.landing-hero-bg {
    /* Базовый фон (для темной темы) */
    background-image: url("landing-grid.svg");
    background-size: 150% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 140px 100px 60px;
    transition: none;
}

/* Автоматическая смена файла для светлой темы */
[data-theme="light"] .landing-hero-bg {
    background-image: url("landing-grid-light.svg");
}

.landing-cta{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.trusted-brands{
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
}

[data-theme="light"] .trusted-logo {
    filter: invert(1); /* Инвертирует цвета: белый станет черным */
}

.trust-confirmation{
    margin-top: -40px;
}

.trusted-brands img{
    width: calc(100%/8 - 20px);
}

.landing-title{
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: center;
}

.desktop-landing-cta{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.mobile-landing-cta{
    display: none;
}

/* Медиа-запросы оставляем без изменений, цвета управляются через переменные */
@media (min-width: 2000px) {
    .col12-desktop{ width: 1920px; }
    .wrapper, .hero-block, .case-main-info, header .horizontal-container-auto, .footer {
        padding-left: calc((100% - 1920px)/2);
        padding-right: calc((100% - 1920px)/2);
    }
    .case-header{ padding-left: 0; padding-right: 0; }

    #theme-toggle-mobile{
        display:none;
    }
}

@media (min-width: 1440px) {
    #theme-toggle-mobile{
        display:none;
    }
    .mobile-menu{ display: none; }
    .desktop-only{ display: block; }
    .col12-desktop{ width: 100%; }
    .col11-desktop{ width: calc((100% / 12 * 11) - 40px); }
    .col10-desktop{ width: calc((100% / 12 * 10) - 40px); }
    .col9-desktop{ width: calc((100% / 12 * 9) - 40px); }
    .col8-desktop{ width: calc((100% / 12 * 8) - 40px); }
    .col7-desktop{ width: calc((100% / 12 * 7) - 40px); }
    .col6-desktop{ width: calc((100% - 80px) / 2); }
    .col5-desktop{ width: calc((100% / 12 * 5) - 40px); }
    .col4-desktop{ width: calc((100% - 240px) / 3); }
    .col3-desktop{ width: calc((100% - 320px) / 4); }
    .col2-desktop{ width: calc((100% / 12) - 40px); }
    header .burger{ display: none; }
}

@media (min-width: 1040px) and (max-width: 1439px) {
    #theme-toggle-mobile{
        display:none;
    }
    .plans{ gap: 12px; flex-direction: row; overflow-x: auto; justify-content: center; }
    .plan-card{ min-width: calc(33% - 12px); flex-direction: row; flex-wrap: wrap; }
    .card-container-column{ flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .card-container{ gap: 16px; }
    .benefit-card{ max-width: calc(50% - 16px); padding: 16px; border-radius: 16px; }
    .medium-card{ max-width: calc(50% - 16px); }
    .big-card{ max-width: 100%; }
    .card-grid-1{ width: calc(25% - 16px); }
    .card-grid-2{ width: calc(50% - 16px); }
    .card-grid-3, .card-grid-4{ width: 100%; }
    .brands-card{ width: calc(100%/4 - 12px); }
    .nda{ padding: 40px; }
    .mobile-menu{ display: none; }
    .case-content{ gap: 40px; }
    .tablet-only{ display: block; }
    .horizontal-flex { gap: 40px; }
    .horizontal-container-auto{ gap: 40px; flex-direction: row; flex-wrap: wrap; }
    header .horizontal-container-auto { padding: 20px 60px; gap: 20px; flex-direction: row; vertical-align: middle; }
    .col8-tablet{ width: 100%; }
    .col6-tablet{ width: calc(100% / 8 * 6 - 40px); }
    .col4-tablet{ width: calc(100% / 8 * 4 - 40px); }
    .col2-tablet{ width: calc(100% / 8 * 2 - 40px); }
    .wrapper{ padding: 60px; gap: 40px; }
    .trust-confirmation { margin-top: -20px; }
    .hero-block{ padding: 60px; padding-top: 160px; }
    .case-header{ padding: 0; border-radius: 0 0 60px 60px; }
    .case-main-info{ padding-left: 60px; padding-right: 60px; }
    header .burger{ display: none; }
    .footer{ padding-left: 60px; padding-right: 60px; padding-top: 180px; padding-bottom: 60px; gap: 80px; }
    .photo{ max-width: 560px; }
    .landing-hero-bg{ padding-top: 120px; padding-bottom: 20px; }
    .desktop-landing-cta{ display: flex; flex-direction: row; gap: 20px; }
    .mobile-landing-cta{ display: none; }
    .hero-video{ max-width: 560px; }
    .steps{ flex-direction: column; gap: 40px; }
    .step{ flex-direction: row; gap: 20px; }
    .steps::before { height: 75%; width: 2px; border-top: none; border-left: 2px dashed var(--border-color-muted); left: 40px; }
}

@media (min-width: 577px) and (max-width: 1039px) {
    .faq-conteiner{ grid-template-columns: repeat(1, 1fr); gap: 16px; }
    .steps{ flex-direction: column; gap: 40px; }
    .step{ flex-direction: row; gap: 20px; }
    .step-count{ min-width: 20px; width: 20px; height: 40px; }
    .vertical-auto{ justify-content: start; gap: 24px; }
    .card-container-column{ flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .card-container{ gap: 8px; }
    .benefit-card{ max-width: calc(50% - 8px); padding: 12px; border-radius: 12px; }
    .brands-card{ width: calc(100%/4 - 6px); }
    .card-grid-1{ width: calc(25% - 8px); }
    .card-grid-2{ width: calc(100% - 8px); }
    .card-grid-3, .card-grid-4{ width: 100%; }
    .big-card{ max-width: 100%; }
    .nda{ height: calc(100vh - 64px); padding: 40px; }
    .need-password{ gap: 40px; padding: 40px; }
    .sticky{ position: relative; height: fit-content; top: 0; }
    .tags{ top: 20px; opacity: 1; }
    .horizontal-flex { gap: 40px; }
    .case-content{ gap: 40px; }
    .horizontal-container-auto{ gap: 40px; flex-direction: row; flex-wrap: wrap; }
    #home-page-cases .case:nth-child(n+3), #case-page-cases .case:nth-child(n+3) { display: none !important; }
    .tab-container{ flex-wrap: wrap; }
    .tablet-only{ display: block; }
    header .horizontal-container-auto {
        height: auto;
        padding: 12px 40px;
        gap: 20px;
        flex-direction: row;
        vertical-align: middle;
        justify-content: space-between;
        align-items: center;
     }
    header .horizontal-container, header .fourth-cta{ display: none; }
    .col8-tablet, .col6-tablet, .col4-tablet{ width: 100%; }
    .col2-tablet{ width: calc(100% / 2 - 40px); }
    .wrapper{ padding: 40px; gap: 40px; }
    .hero-block{ padding: 40px; padding-top: 120px; }
    .case-header{ padding: 0; border-radius: 0 0 40px 40px; }
    .case-main-info{ padding-left: 40px; padding-right: 40px; }
    .burger{ right: 40px; }
    .footer{ padding-left: 40px; padding-right: 40px; padding-top: 180px; padding-bottom: 60px; gap: 80px; }
    .service img{ width: 40px; height: 40px; }
    .icon-img{ width: 120px; }
    .mobile-reverse{ flex-direction: column-reverse; }
    .photo{ max-width: 420px; }
    .cta-card{ padding-left: 20px; padding-right: 20px; }
    .desktop-landing-cta{ display: none; }
    .mobile-landing-cta{ display: flex; flex-direction: row; gap: 20px; width: 100%; justify-content: center; }
    .landing-title{ gap: 40px; vertical-align: middle; align-items: center; }
    .landing-hero{ vertical-align: middle; justify-content: center; gap: 40px; text-align: center; }
    .hero-video{ max-width: 420px; }
    .trust-confirmation{ margin-top: -20px; }
    .trusted-brands { flex-wrap: wrap; }
    .trusted-brands img{ width: calc(100%/4 - 20px); }
    .steps::before { height: 75%; width: 2px; border-top: none; border-left: 2px dashed var(--border-color-muted); left: 20px; }
    .deliverables{ gap: 8px; }
    .delivarble-card{ width: 49%; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 16px; }
    .landing-hero-bg{ background-size: 300% auto; }
    .benefits{ gap: 8px; flex-direction: column; }
    .benefit-card-m{ max-width: 100%; padding: 16px; border-radius: 24px; }
    .work-examples{ gap: 8px; }
    .work-example { max-width: calc(100%/3 - 8px); aspect-ratio: 1 / 1; border-radius: 16px; }
    .work-example:nth-child(n+4) { max-width: calc(100%/2 - 8px); }
    #pricing-section{ padding-left: 0px; padding-right: 0px; gap: 20px; }
    .plans{ gap: 12px; overflow: scroll; justify-content: center; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; padding: 20px; padding-left: 40px !important; padding-right: 40px !important; }
    .plans::-webkit-scrollbar { display: none; }
    .plan-card{ min-width: 480px; max-width: 640px; scroll-snap-align: center; }
    .service-card-large{ width: calc(100%/2 - 16px); }
    .service-card-small{ width: calc(50% - 8px); }
    .service-grid{ gap: 16px; flex-direction: row; flex-wrap: wrap; }
    .card-intel-grid{ flex-wrap: wrap; }
    .card-intel-grid .card-content{ max-width: calc(50% - 24px); }
    .card-spacer{ height: auto; }
    .card-spacer-horizontal{ width: 100%; height: 2px; }
    .header-right-btns {display: none;}
}

@media (max-width: 576px) {
    .faq-conteiner{ grid-template-columns: repeat(1, 1fr); gap: 16px; }
    .header-right-btns {display: none;}
    .work-examples{ gap: 8px; }
    .work-example { max-width: calc(100%/3 - 8px); aspect-ratio: 1 / 1; border-radius: 16px; }
    .work-example:nth-child(n+4) { max-width: calc(100%/2 - 8px); }
    .deliverables { gap: 8px; }
    .delivarble-card { width: calc(50% - 8px); flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 16px; }
    .steps::before { height: 75%; width: 2px; border-top: none; border-left: 2px dashed var(--border-color-muted); left: 20px; }
    .cta-card{ flex-direction: column; align-items: center; justify-content: center; gap: 40px; border-radius: 40px; padding: 20px; padding-top: 40px; text-align: center; }
    .mobile_primary_button{ width: 100%; }
    .card-container-column{ flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .card-container{ gap: 8px; }
    .benefit-card{ max-width: calc(50% - 4px); padding: 12px; border-radius: 12px; }
    .brands-card{ width: calc(100%/3 - 6px); }
    .card-grid-1{ width: calc(50% - 4px); }
    .card-grid-2, .card-grid-3, .card-grid-4, .big-card{ width: 100%; max-width: 100%; }
    .vertical-auto{ gap: 24px; }
    .nda{ height: calc(100vh - 64px); padding: 20px; }
    .need-password{ gap: 40px; padding: 40px 20px 40px 20px; }
    .pill{ padding: 10px 10px 10px 20px; max-width: 100%; }
    .pill-btn{ height: 44px; width: 44px; }
    .pill-btn img{ height: 12px; }
    .pill input{ max-width: 120px; }
    .system-icon{ height: 32px; }
    .sticky{ position: relative; height: fit-content; top: 0; }
    .case-content{ gap: 40px; }
    .horizontal-flex { gap: 20px; }
    .tags{ top: 10px; left: 10px; opacity: 1; width: calc(100% - 20px); flex-wrap: wrap; }
    .tag-nda{ top: 10px; right: 10px; height: 20px; opacity: 1; }
    .case:hover .tags{ top: 10px; }
    .tag{ padding: 3px 8px; font-size: 12px; }
    .case-button{ width: 48px; height: 48px; padding: 0; left: auto; right: 10px; bottom: 10px; }
    .mobile-only{ display: block; }
    .icon-img{ width: 80px; }
    .case{ gap: 20px; }
    .vertical-10{ gap: 5px; }
    .vertical-20{ gap: 10px; }
    .vertical-40{ gap: 20px; }
    .horizontal-container-auto{ gap: 40px; flex-direction: column; }
    .tab-container{ flex-wrap: wrap; }
    #home-page-cases .case:nth-child(n+3), #case-page-cases .case:nth-child(n+3) { display: none !important; }
    .mobile-reverse{ flex-direction: column-reverse; }
    .col4-mobile{ width: 100%; }
    .col2-mobile{ width: calc(100% / 4 * 2 - 20px); }
    .col1-mobile{ width: calc(100% / 4 * 1 - 20px); }
    .wrapper{ padding: 40px 20px; gap: 40px; }
    .hero-block{ padding: 20px; padding-top: 120px; gap: 40px; }
    .case-header{ padding: 0; border-radius: 0 0 32px 32px; }
    .case-main-info{ padding-left: 20px; padding-right: 20px; padding-bottom: 20px; padding-top: 160px; }
    .mobile-menu .nav-link{ padding-left: 20px; padding-right: 20px; width: 100%; text-align: start; }
    header .horizontal-container-auto{ height: auto;
        padding: 12px 20px;
        gap: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        }
    header .logo{ height: 16px; }
    header .horizontal-container, header .fourth-cta{ display: none; }
    .burger{ right: 20px; }
    .page{ margin-bottom: 0px; }
    .footer{ position: relative; padding-left: 20px; padding-right: 20px; padding-top: 60px; padding-bottom: 20px; gap: 40px; transform: translateY(-100px); }
    .case-preview{ border-radius: 20px; }
    .service img{ width: 40px; height: 40px; }
    .copyright{ text-align: center; font-size: 10px; }
    .footer-nav{ text-align: start; }
    .photo{ max-width: 160px; }
    .desktop-landing-cta{ display: none; }
    .mobile-landing-cta{ display: flex; flex-direction: column; gap: 8px; width: 100%; justify-content: center; }
    .landing-title{ gap: 40px; }
    .trusted-brands { flex-wrap: wrap; }
    .landing-hero-bg{ padding-top: 80px; }
    .trust-confirmation{ margin-top: 0px; gap: 20px; display: flex; flex-direction: column; }
    .trusted-brands img { width: calc(100%/4 - 20px); }
    .landing-hero{ vertical-align: middle; justify-content: center; align-items: center; text-align: center; gap: 40px; }
    .landing-cta{ flex-direction: column; gap: 8px; }
    .benefits{ gap: 8px; flex-direction: column; }
    .benefit-card-m{ max-width: 100%; padding: 16px; border-radius: 24px; }
    .step-count{ min-width: 20px; width: 20px; height: 40px; }
    .steps{ gap: 20px; flex-direction: column; flex-wrap: wrap; }
    .step{ flex-direction: row; gap: 16px; }
    .landing-hero-bg{ background-size: 300% auto; }
    #pricing-section{ padding-left: 0px; padding-right: 0px; gap: 20px; }
    .plans{ gap: 8px; overflow: scroll; justify-content: center; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; padding: 20px; padding-left: 40px !important; padding-right: 40px !important; }
    .plans::-webkit-scrollbar { display: none; }
    .plan-card{ min-width: 100%; scroll-snap-align: center; }
    .service-card-large{ width: 100%; flex-direction: row-reverse; vertical-align: middle; }
    .service-card-large .vertical-10{ justify-content: center; }
    .service-img{ width: 120px; height: 120px; }
    .service-card-small{ width: 100%; max-width: 100%; }
    .service-grid{ gap: 16px; flex-direction: row; flex-wrap: wrap; }
    .card-intel-grid{ flex-wrap: wrap; }
    .card-intel-grid .card-content{ max-width: calc(50% - 24px); }
    .card-spacer{ height: auto; width: 1px; }
    .card-spacer-horizontal{ width: 100%; height: 1px; }
    .cookies_container { flex-direction: column; padding: 16px; border-radius: 24px; text-align: center; gap: 12px; }
    .btn-container{ margin-top: 32px; gap: 16px; flex-direction: column; }
}

.service{ gap: 0; }
.service--opened{ gap: 20px; }

/* Typography styles */
.title-h1 {   font-family: "Urbanist", sans-serif; font-optical-sizing: auto; font-weight: 700; font-size: 64px; line-height: 110%; font-style: normal; }
.title-h2 {   font-family: "Urbanist", sans-serif; font-optical-sizing: auto; font-weight: 700; font-size: 48px; line-height: 120%; font-style: normal; }
.title-h3 { max-width: 640px; font-family: "Urbanist", sans-serif; font-optical-sizing: auto; font-weight: 700; font-size: 32px; line-height: 125%; font-style: normal; }
.title-h4 { max-width: 640px; font-family: "Urbanist", sans-serif; font-optical-sizing: auto; font-weight: 600; font-size: 24px; line-height: 145%; font-style: normal; }
.big-caption { max-width: 960px; font-optical-sizing: auto; font-weight: 300; font-size: 32px; line-height: 145%; font-style: normal; }
.medium-caption { max-width: 640px; font-optical-sizing: auto; font-weight: 300; font-size: 24px; line-height: 145%; font-style: normal; }
.small-caption { max-width: 640px; font-optical-sizing: auto; font-weight: 300; font-size: 18px; line-height: 155%; font-style: normal; }

@media (max-width: 1439px) {
    .title-h1 { font-size: 48px; }
    .title-h2 { font-size: 32px; }
    .title-h3 { font-size: 24px; }
    .title-h4 { font-size: 18px; }
    .big-caption { font-size: 24px; }
    .medium-caption { font-size: 18px; }
    .small-caption { font-size: 16px; }
}

@media (max-width: 576px) {
    .title-h1 { font-size: 40px; }
    .title-h2 { font-size: 32px; }
    .title-h3 { font-size: 24px; }
    .title-h4 { font-size: 18px; }
    .big-caption { font-size: 18px; }
    .medium-caption { font-size: 16px; }
    .small-caption { font-size: 14px; }
}

.white-100{ color: var(--text-main); }
.white-60{ color: var(--text-muted); }

/* Animation Fade In */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
}

.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }
.reveal[data-delay="7"] { transition-delay: 560ms; }
.reveal[data-delay="8"] { transition-delay: 640ms; }
.reveal[data-delay="9"] { transition-delay: 720ms; }
.reveal[data-delay="10"] { transition-delay: 800ms; }
.reveal[data-delay="11"] { transition-delay: 880ms; }
.reveal[data-delay="12"] { transition-delay: 960ms; }

/* Forms Stylesheet */
.select-field-group {
    font-family: system-ui, -apple-system, sans-serif;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.select-header-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.select-title {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
}

.select-required {
    color: var(--accent);
    font-size: 14px;
}

.select-description {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 12px 0;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color-muted);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.select-trigger:hover {
    border-color: var(--text-subtle);
}

.select-chevron {
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.select-options-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.select-option {
    padding: 14px 20px;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.select-option:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.select-option:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-main);
}

.custom-select.is-open .select-options-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-select.is-open .select-chevron {
    transform: rotate(0deg);
}

.input-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.tag-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tag-chip .tag-content {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color-muted);
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    user-select: none;
    min-width: 100px;
    transition: all 0.2s ease-in-out;
}

.tag-chip input:checked + .tag-content {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-main);
}

.tag-chip input:checked + .tag-content:hover {
    border-color: #fff;
}

.tag-chip input:focus-visible + .tag-content {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tag-chip:hover .tag-content {
    border-color: #fff;
    color: var(--text-main);
}

.input-container {
    min-width: 320px;
    max-width: 100%;
    width: 100%;
}

.input-container:hover .input-field::placeholder{
    color: var(--text-main);
}

.input-field {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--border-color-muted);
    background-color: var(--bg-main);
    border-radius: 20px;
    color: var(--text-main);
}

.input-text-label {
    display: flex;
    justify-content: row;
    flex-wrap: wrap;
    gap: 10px;
    vertical-align: middle;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_690_4264)'%3E%3Cpath d='M5.89312 11.9942C9.14589 11.9942 11.7862 9.30723 11.7862 5.99707C11.7862 2.68692 9.14589 0 5.89312 0C2.64035 0 0 2.68692 0 5.99707C0 9.30723 2.64035 11.9942 5.89312 11.9942ZM5.89312 10.9946C3.17766 10.9946 0.982188 8.76044 0.982188 5.99707C0.982188 3.23371 3.17766 0.999514 5.89312 0.999514C8.60858 0.999514 10.804 3.23371 10.804 5.99707C10.804 8.76044 8.60858 10.9946 5.89312 10.9946Z' fill='%23333338'/%3E%3Cpath d='M3.39173 5.99152C3.61706 5.99152 3.80194 5.80926 3.80194 5.57996V5.29186L3.73839 4.3629L4.99212 5.69755C5.15967 5.88569 5.43699 5.87981 5.60454 5.70343C5.77209 5.53292 5.76631 5.24483 5.59876 5.0802L4.29881 3.81611L5.18278 3.87491H5.46588C5.6912 3.87491 5.87031 3.69264 5.87031 3.46334C5.87031 3.23404 5.6912 3.0459 5.46588 3.0459H3.46106C3.16063 3.0459 2.9873 3.18113 2.9873 3.5339V5.57996C2.9873 5.80926 3.16641 5.99152 3.39173 5.99152ZM6.31516 8.96065H8.3142C8.61462 8.96065 8.79377 8.82543 8.79377 8.47268V6.42659C8.79377 6.19732 8.60889 6.01504 8.38354 6.01504C8.15825 6.01504 7.9791 6.19732 7.9791 6.42659V6.71467L8.0369 7.64365L6.78894 6.309C6.61559 6.12086 6.34409 6.12676 6.17075 6.30316C6.0032 6.47367 6.00894 6.76175 6.17655 6.92636L7.48226 8.19044L6.59826 8.13168H6.31516C6.08987 8.13168 5.90497 8.31392 5.90497 8.54324C5.90497 8.77251 6.08987 8.96065 6.31516 8.96065Z' fill='%23333338'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_690_4264'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-position: right 10px bottom 10px;
    padding-right: 24px;
    padding-bottom: 24px;
}

textarea::-webkit-resizer {
    background-color: transparent;
}

.input-required {
    color: var(--accent);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
}

.input-field::placeholder {
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .input-container { min-width: 100%; }
    .input-field { padding: 12px; border-radius: 12px; }
    .tag-chip .tag-content { padding: 8px 16px; border-radius: 12px; }
}

.input-container.has-error .input-field,
.input-container.has-error .select-trigger {
    border-color: var(--error-color-light) !important;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.2);
}

.input-container.has-error .input-required {
    color: var(--error-color-light) !important;
}

.input-container.has-error {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Pop Up */
.form-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--overlay-popup);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.form-popup-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.form-popup-panel {
    border-radius: 0 40px 40px 0px;
    width: 720px;
    max-width: 100%;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-popup-overlay.is-visible .form-popup-panel {
    transform: translateX(0);
}

.popup-close-icon-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    opacity: .2;
    transition: all 0.2s ease-in-out;
}

.popup-close-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--text-main);

    /* Подключаем SVG-иконку крестика как маску */
    -webkit-mask: url("/static/artmorozov/img/xmark-circle.svg") no-repeat center / contain;
    mask: url("/static/artmorozov/img/xmark-circle.svg") no-repeat center / contain;
}

.popup-close-icon-btn:hover {
    opacity: 1;
}

.popup-steps-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    flex-direction: column;
    height: 100%;
}

.form-step.active {
    display: flex;
}

.popup-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.step-counter {
    display: block;
    margin-bottom: 8px;
}

.popup-title {
    margin: 0 0 12px 0;
}

.popup-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-right: 4px;
}

.popup-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.step-dots {
    display: flex;
    gap: 8px;
}

.step-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color-muted);
    transition: background-color 0.2s ease;
}

.step-dots .dot.active {
    background-color: var(--accent);
}

.popup-buttons {
    justify-content: center;
    display: flex;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: var(--text-main);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

.popup-form-button{
    width: 50%;
    justify-content: center;
}

@media (max-width: 960px) {
    .form-popup-overlay {
        justify-content: center;
        align-items: flex-end;
    }
    .popup-body{ gap: 20px; }
    .form-popup-panel {
        width: 100%;
        height: 95vh;
        height: 95dvh;
        border-right: none;
        border-top: 1px solid var(--border-color);
        border-radius: 24px 24px 0 0;
        padding: 32px 24px 24px 24px;
        transform: translateY(100%);
    }
    .form-popup-overlay.is-visible .form-popup-panel { transform: translateY(0); }
    .popup-footer { margin-top: 24px; }
    .popup-buttons{ gap: 8px; }
}

@media (max-width: 576px) {
    .form-popup-panel{ padding: 24px 12px 32px 12px; }
    .popup-buttons { gap: 8px; }
    .popup-form-button { width: 100%; }
    .popup-close-icon-btn { top: 12px; right: 12px; }
    .popup-close-icon-btn img{ width: 24px; }
}

.full-width-cta{ width: 100%; }

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
}

.loader-spinner {
    animation: rotate-loader 2s linear infinite;
    width: 48px;
    height: 48px;
}

.loader-spinner .loader-path {
    stroke: var(--text-main);
    stroke-linecap: round;
    animation: dash-loader 1.5s ease-in-out infinite;
}

.loader-text {
    margin-top: 24px;
    font-size: 14px;
    line-height: 140%;
    color: rgba(255, 255, 255, 0.5);
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes rotate-loader {
    100% { transform: rotate(360deg); }
}

@keyframes dash-loader {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

.service-card-small, .service-card-large, .btn-primary, .btn-secondary, .primary-cta, .secondary-cta {
    transition: border .1s ease-out;
}

.checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    align-items: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-main);
    font-size: 14px;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid var(--border-color-muted);
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkbox-icon {
    width: 14px;
    height: 14px;
    color: var(--text-main);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.checkbox-label:hover .checkbox-input:not(:disabled) ~ .checkbox-box {
    border-color: var(--accent);
}

.checkbox-input:focus-visible ~ .checkbox-box {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.25);
}

.checkbox-input:checked ~ .checkbox-box {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkbox-input:checked ~ .checkbox-box .checkbox-icon {
    opacity: 1;
    transform: scale(1);
}

.checkbox-wrapper.is-disabled .checkbox-label {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-wrapper.is-invalid .checkbox-box {
    border-color: var(--error-color-light);
}

.checkbox-hint {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 28px;
}

.checkbox-hint.error-text {
    color: var(--error-color-light);
}

/* Кнопка переключателя темы */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color-muted);
  background-color: var(--bg-main);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Переключение видимости иконок */
/* По умолчанию (темная тема): видна луна, скрыто солнце */
.theme-toggle-btn .icon-sun {
  display: none;
}
.theme-toggle-btn .icon-moon {
  display: block;
}

/* В светлой теме: видно солнце, скрыта луна */
[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: none;
}