/* =========================================================
   Chicken Caesar Industries — main stylesheet
   ========================================================= */

:root {
    --text-font: "Funnel Sans", serif;
    --title-font: "Funnel Display", serif;

    --theme-color: #dd2f22;
    --theme-color-dark: #b9241a;
    --secondary-color: #001321;
    --text-color: #646768;
    --title-color: #001321;

    --white: #ffffff;
    --light-bg: #f3f6f7;
    --border: #e3e8ea;
    --success: #1f8a4c;

    --container: 1320px;
    --gutter: 24px;
    --header-h: 100px;
    --shadow: 0 10px 40px rgba(0, 19, 33, 0.08);
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--text-font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: 600;
    line-height: 1.2;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: 110px 0; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 10px 16px;
    background: var(--secondary-color);
    color: var(--white);
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 14px 38px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn .arrow { font-size: 15px; color: currentColor; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn--primary { background: var(--theme-color); color: var(--white); }
.btn--primary:hover { background: var(--secondary-color); }

.btn--dark { background: var(--secondary-color); color: var(--white); }
.btn--dark .arrow { color: var(--theme-color); }
.btn--dark:hover { background: var(--theme-color); }
.btn--dark:hover .arrow { color: var(--white); }

.btn--light { background: var(--white); color: var(--title-color); }
.btn--light .arrow { color: var(--theme-color); }
.btn--light:hover { background: var(--theme-color); color: var(--white); }
.btn--light:hover .arrow { color: var(--white); }

.btn--ghost { background: transparent; color: var(--title-color); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--secondary-color); }

/* ---------- Eyebrow + titles ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--theme-color);
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.eyebrow__icon {
    width: 20px;
    height: 18px;
    background:
        linear-gradient(var(--theme-color), var(--theme-color)) 0 100% / 4px 6px no-repeat,
        linear-gradient(var(--theme-color), var(--theme-color)) 6px 100% / 4px 10px no-repeat,
        linear-gradient(var(--theme-color), var(--theme-color)) 12px 100% / 4px 16px no-repeat;
}
.eyebrow--plain { margin-bottom: 12px; }
.eyebrow--light { color: #ff6a5f; }
.eyebrow--light .eyebrow__icon { filter: brightness(1.3); }

.section-title {
    font-size: clamp(32px, 4.2vw, 64px);
    letter-spacing: -.01em;
}
.section-title--light { color: var(--white); }

.section-head { text-align: center; margin-bottom: 70px; }

/* ---------- Mask icons (tinted with currentColor) ---------- */
.icon-mask {
    display: block;
    background: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-top: 4px solid var(--secondary-color);
    transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 30px rgba(0, 19, 33, .1); }

.header__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1920px;
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 48px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 66px; height: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
    font-family: var(--title-font);
    font-size: 28px;
    font-weight: 500;
    color: var(--title-color);
    letter-spacing: -.01em;
}
.logo__name b { color: var(--theme-color); font-weight: 600; }
.logo__tag { margin-top: 4px; font-size: 13px; color: var(--text-color); }
.logo--light .logo__name { color: var(--white); }
.logo--light .logo__tag { color: rgba(255, 255, 255, .6); }

.nav {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 30px;
    border-left: 1px solid var(--border);
}
.nav__list { display: flex; align-items: center; gap: 38px; }
.nav__link {
    position: relative;
    display: block;
    padding: 8px 0;
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 500;
    color: var(--title-color);
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--theme-color);
    transition: width .3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--theme-color); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__cta { display: none; }

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-right: 30px;
    border-right: 1px solid var(--border);
    font-family: var(--title-font);
    font-weight: 500;
    color: var(--title-color);
    white-space: nowrap;
}
.header__phone svg { color: var(--theme-color); }
.header__phone:hover { color: var(--theme-color); }

.header__cta { min-height: 66px; flex-shrink: 0; }

.burger {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: var(--secondary-color);
}
.burger span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: calc(100vh - var(--header-h));
    min-height: 640px;
    max-height: 900px;
    overflow: hidden;
    background: var(--secondary-color);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06);
    transition: opacity 1s var(--ease), visibility 1s, transform 6s linear;
}
.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 19, 33, .88) 0%, rgba(0, 19, 33, .7) 45%, rgba(0, 19, 33, .45) 100%);
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }

.hero__content {
    position: relative;
    z-index: 1;
    padding-left: calc(var(--gutter) + 60px);
    color: var(--white);
}
.hero__pre,
.hero__post {
    font-family: var(--title-font);
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}
.hero__title {
    margin: 6px 0 14px;
    font-family: var(--title-font);
    font-size: clamp(64px, 10.5vw, 170px);
    font-weight: 700;
    line-height: .9;
    color: var(--white);
    letter-spacing: -.02em;
}
.hero__text {
    max-width: 620px;
    margin: 26px 0 40px;
    font-size: 19px;
    color: rgba(255, 255, 255, .8);
}
.hero__slide .hero__content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .45s; }
.hero__slide.is-active .hero__content > :nth-child(5) { transition-delay: .6s; }

.hero__controls {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
}
.hero__arrow {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-left: 0;
    background: transparent;
    color: var(--white);
    transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.hero__arrow:hover { background: var(--theme-color); border-color: var(--theme-color); }

/* ---------- About ---------- */
.about { position: relative; }
.about__band {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 270px;
    background: var(--secondary-color);
}
.about__wrap {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.about__top,
.about__body {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
}
.about__top { background: var(--white); }
.about__brand {
    position: relative;
    padding: 40px 60px 40px 84px;
    border-right: 1px solid var(--border);
}
.about__brand-label {
    position: absolute;
    top: 30px;
    left: 290px;
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: 600;
    color: var(--theme-color);
}
.about__brand-text {
    margin-top: 44px;
    font-family: var(--title-font);
    font-size: clamp(56px, 7.6vw, 128px);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -.035em;
    text-transform: none;
    color: var(--secondary-color);
    background: url("../images/brand-text.jpg") center / cover no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about__mission {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}
.about__mission-text {
    font-family: var(--title-font);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--title-color);
}
.about__mission-place { margin-top: 14px; font-size: 17px; }

.about__body { background: var(--light-bg); }
.about__content { padding: 150px 60px 90px 84px; border-right: 1px solid var(--border); }
.about__content .section-title { font-size: clamp(32px, 3.4vw, 56px); }
.about__text { margin: 40px 0 46px; max-width: 760px; font-size: 18px; line-height: 1.8; }

.about__row { display: grid; grid-template-columns: minmax(240px, 370px) 1fr; gap: 42px; align-items: start; }
.stat-card {
    position: relative;
    min-height: 250px;
    padding: 42px 42px 30px;
    background: #e4e8ea;
    overflow: hidden;
}
.stat-card__label { max-width: 250px; font-size: 18px; }
.stat-card__value {
    position: absolute;
    left: 42px;
    bottom: 26px;
    font-family: var(--title-font);
    font-size: 50px;
    font-weight: 600;
    line-height: 1;
    color: var(--title-color);
}
.stat-card__value span { font-size: 20px; font-weight: 500; }
.stat-card__icon { position: absolute; right: 36px; bottom: 26px; }

.check-list li {
    position: relative;
    margin-bottom: 28px;
    padding-left: 62px;
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--title-color);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(221, 47, 34, .35);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
        var(--theme-color);
    box-shadow: inset 0 0 0 3px var(--light-bg);
}
.about__checks .btn { margin-top: 6px; }

.about__features { align-self: stretch; padding-top: 150px; }
.feature {
    display: grid;
    grid-template-columns: 44px 1fr 76px;
    gap: 26px;
    align-items: center;
    padding: 50px 60px;
    border-top: 1px solid var(--border);
    transition: background-color .3s var(--ease);
}
.feature:last-child { border-bottom: 1px solid var(--border); }
.feature:hover { background: var(--white); }
.feature__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    align-self: start;
    border-radius: 50%;
    background: #e4e8ea;
    color: #9aa2a6;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.feature:hover .feature__arrow { background: var(--theme-color); color: var(--white); }
.feature__title { font-size: 28px; line-height: 1.35; }
.feature__text { margin-top: 18px; font-size: 18px; }
.feature__icon {
    justify-self: end;
    width: 44px;
    height: auto;
    padding: 6px 0 6px 30px;
    box-sizing: content-box;
    border-left: 1px solid var(--border);
}

/* ---------- Services ---------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 46px;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0, 19, 33, .14); }
.service-card__title {
    padding: 52px 46px 0;
    font-size: 30px;
    line-height: 1.35;
    min-height: 3.1em;
    box-sizing: content-box;
}
.service-card__media {
    position: relative;
    margin: 34px 46px 0;
    aspect-ratio: 330 / 370;
}
.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 0 96%);
}
/* thin red line running parallel under the slanted bottom edge of the photo */
.service-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--theme-color);
    clip-path: polygon(0 97.6%, 100% 79.6%, 100% 80.2%, 0 98.2%);
    transition: clip-path .4s var(--ease);
    pointer-events: none;
}
.service-card:hover .service-card__media::after { clip-path: polygon(0 97.6%, 100% 79.6%, 100% 80.8%, 0 98.8%); }
.service-card__text {
    flex: 1;
    padding: 44px 46px 36px;
    font-size: 20px;
    line-height: 1.6;
}
.service-card__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px 46px;
    border-top: 1px solid var(--border);
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 600;
    color: var(--title-color);
}
.service-card__link .arrow { color: var(--theme-color); transition: transform .3s var(--ease); }
.service-card__link:hover { color: var(--theme-color); }
.service-card__link:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Why us ---------- */
.why { border-top: 1px solid var(--border); }
.why__grid {
    display: grid;
    grid-template-columns: 1fr 520px 1fr;
    gap: 60px;
    align-items: stretch;
}
.why__col { display: flex; flex-direction: column; justify-content: space-between; gap: 50px; }
.why__col--right { text-align: right; }
.why-item { position: relative; }
.why-item__head { display: flex; align-items: center; margin-bottom: 28px; }
.why-item__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--secondary-color);
    box-shadow: 0 0 0 8px var(--white), 0 10px 30px rgba(0, 19, 33, .07);
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.why-item__icon .icon-mask { width: 34px; height: 34px; }
.why-item:hover .why-item__icon { background: var(--theme-color); color: var(--white); }
.why-item__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 500;
    color: #9aa2a6;
    background: var(--white);
}
.why__col--left .why-item__num { margin-left: auto; margin-right: 20px; }
.why__col--right .why-item__num { margin-right: auto; margin-left: 20px; }
/* connector line from number toward the center image */
.why-item__num::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--border);
}
.why__col--left .why-item__num::after { left: 100%; }
.why__col--right .why-item__num::after { right: 100%; }
.why-item__title { font-size: 28px; margin-bottom: 14px; }
.why-item__text { max-width: 440px; font-size: 18px; }
.why__col--right .why-item__text { margin-left: auto; }

.why__center {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 50% 100%, 0 94%);
}
.why__center img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.why__center::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(221, 47, 34, .45) 45%, rgba(221, 47, 34, .9) 100%);
    mix-blend-mode: multiply;
}

/* ---------- Process ---------- */
.process { padding-top: 40px; }
.process__grid {
    --step-half: 330px;
    --num: 76px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 46px;
}
/* horizontal line through the numbers */
.process__grid::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--step-half) + var(--num) / 2);
    height: 1px;
    background: var(--border);
}
.step {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* soft panel: from the middle of the top icon down (odd) / from the top to the middle of the bottom icon (alt) */
.step::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    bottom: 64px;
    z-index: -1;
    background: linear-gradient(180deg, #f2f5f6 0%, #f8fafa 55%, rgba(255, 255, 255, 0) 100%);
}
.step--alt::before { background: linear-gradient(0deg, #f2f5f6 0%, #f8fafa 55%, rgba(255, 255, 255, 0) 100%); }

.step__top,
.step__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: var(--step-half);
    padding: 0 24px;
}
.step .step__top { justify-content: flex-start; }
.step .step__top .step__head { margin-top: auto; padding-bottom: 34px; }
.step--alt .step__top { justify-content: flex-end; }
.step--alt .step__bottom .step__head { padding-top: 34px; }
.step--alt .step__bottom .step__icon { margin-top: auto; }

.step__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: #eef2f4;
    color: var(--secondary-color);
    box-shadow: 0 0 0 14px var(--white), 0 14px 34px rgba(0, 19, 33, .07);
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.step__icon .icon-mask { width: 50px; height: 50px; }
.step:hover .step__icon { background: var(--theme-color); color: var(--white); }
.step__label {
    margin-bottom: 6px;
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--theme-color);
}
.step__title { font-size: 30px; }
.step__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: var(--num);
    height: var(--num);
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: 500;
    color: var(--title-color);
}
.step__text { max-width: 330px; font-size: 19px; line-height: 1.75; }
.step .step__bottom .step__text { margin-top: 36px; }
.step--alt .step__top .step__text { margin-bottom: 36px; }

/* thin connector with a small triangle between the number and the text */
.step__arrow {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 1px;
    height: 48px;
    background: #d6dcdf;
}
.step__arrow::after {
    content: "";
    position: absolute;
    left: -6px;
    border-left: 6.5px solid transparent;
    border-right: 6.5px solid transparent;
}
.step__arrow--down::after { bottom: -9px; border-top: 10px solid #c9d0d4; }
.step__arrow--up::after { top: -9px; border-bottom: 10px solid #c9d0d4; }

.process__cta {
    margin-top: 70px;
    text-align: center;
    font-size: 22px;
}
.process__cta a {
    font-family: var(--title-font);
    font-weight: 600;
    color: var(--title-color);
    font-size: 26px;
}
.process__cta a .arrow { color: var(--theme-color); }
.process__cta a:hover { color: var(--theme-color); }

/* ---------- Contact ---------- */
.contact {
    position: relative;
    background:
        linear-gradient(90deg, rgba(0, 19, 33, .95) 0%, rgba(0, 19, 33, .88) 50%, rgba(0, 19, 33, .75) 100%),
        url("../images/contact-bg.jpg") center / cover no-repeat;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.contact__info .section-title { font-size: clamp(32px, 3.6vw, 56px); }
.contact__lead { margin: 28px 0 44px; max-width: 540px; font-size: 19px; color: rgba(255, 255, 255, .75); }
.contact__list li {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: var(--white);
    font-size: 19px;
}
.contact__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact__list a:hover { color: #ff6a5f; }
.contact__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--theme-color);
}
.contact__label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .55);
}

.contact__form-wrap { background: var(--white); padding: 56px; box-shadow: var(--shadow); }
.form__title { font-size: 34px; }
.form__subtitle { margin: 8px 0 30px; font-size: 15px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { margin-bottom: 18px; }
.form__field label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--title-font);
    font-size: 16px;
    font-weight: 500;
    color: var(--title-color);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--light-bg);
    font: inherit;
    font-size: 16px;
    color: var(--title-color);
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
    appearance: none;
    -webkit-appearance: none;
}
.form select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23001321' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--secondary-color); background-color: var(--white); }
.form__field.has-error input,
.form__field.has-error select,
.form__field.has-error textarea { border-color: var(--theme-color); background-color: #fff5f4; }
.form__error { display: block; min-height: 0; margin-top: 6px; font-size: 14px; color: var(--theme-color); }
.form__error:empty { display: none; }

.form__check {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--text-font) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5;
    color: var(--text-color) !important;
    cursor: pointer;
}
.form__check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--theme-color); }
.form__check a { color: var(--theme-color); text-decoration: underline; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; margin-top: 8px; }
.form__submit[disabled] { cursor: wait; }
.form__submit.is-loading { background: var(--secondary-color); }
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form[aria-busy="true"] .form__field,
.form[aria-busy="true"] .form__row { opacity: .6; pointer-events: none; transition: opacity .3s; }

.form__status { margin-top: 18px; font-size: 16px; }
.form__status:empty { display: none; }
.form__status.is-success,
.form__status.is-error { padding: 16px 20px; border-left: 4px solid; }
.form__status.is-success { border-color: var(--success); background: #eaf7ef; color: #135c32; }
.form__status.is-error { border-color: var(--theme-color); background: #fff1f0; color: #9a1d14; }

.form.is-sent .form__field,
.form.is-sent .form__row,
.form.is-sent .form__submit,
.form.is-sent .form__subtitle { display: none; }
.form.is-sent .form__status { margin-top: 20px; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--secondary-color); color: rgba(255, 255, 255, .7); font-size: 16px; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1.3fr;
    gap: 50px;
    padding-top: 90px;
    padding-bottom: 50px;
}
.footer__text { margin-top: 22px; max-width: 360px; }
.footer__title {
    margin-bottom: 24px;
    font-size: 22px;
    color: var(--white);
}
.footer__links li { margin-bottom: 12px; }
.footer__links a,
.footer__cookie-btn {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    text-align: left;
}
.footer__links a:hover,
.footer__cookie-btn:hover,
.footer__contacts a:hover,
.footer__bottom a:hover { color: var(--white); }
.footer__contacts li { margin-bottom: 14px; color: var(--white); }
.footer__label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .5);
}
.footer__contacts a { word-break: break-word; }
.footer__disclaimer p {
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .55);
}
.footer__disclaimer strong { color: rgba(255, 255, 255, .8); }
.footer__bottom { background: #000d17; }
.footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 30px;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 15px;
}

/* ---------- Cookie banner ---------- */
.cookie {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 32px;
    background: var(--white);
    border-top: 4px solid var(--theme-color);
    box-shadow: 0 20px 60px rgba(0, 19, 33, .25);
    animation: cookie-in .4s var(--ease);
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } }
.cookie__main { flex: 1; }
.cookie__title { font-size: 22px; margin-bottom: 8px; }
.cookie__text { font-size: 15px; line-height: 1.6; }
.cookie__text a { color: var(--theme-color); text-decoration: underline; }
.cookie__prefs { margin-top: 16px; }
.cookie__prefs[hidden] { display: none; }
.cookie__option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
.cookie__option strong { color: var(--title-color); }
.cookie__option input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--theme-color); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie__actions .btn { min-height: 48px; padding: 10px 22px; font-size: 15px; }
.cookie__actions [hidden] { display: none; }

/* ---------- Legal pages ---------- */
.legal-hero {
    padding: 90px 0 70px;
    background:
        linear-gradient(90deg, rgba(0, 19, 33, .95), rgba(0, 19, 33, .8)),
        url("../images/hero-1.jpg") center / cover no-repeat;
    color: rgba(255, 255, 255, .75);
}
.legal-hero h1 { color: var(--white); font-size: clamp(36px, 5vw, 64px); }
.legal-hero p { margin-top: 14px; }
.legal { padding: 80px 0 110px; }
.legal__content { max-width: 900px; }
.legal__content h2 { margin: 44px 0 16px; font-size: 28px; }
.legal__content h3 { margin: 26px 0 10px; font-size: 21px; }
.legal__content p,
.legal__content li { margin-bottom: 12px; }
.legal__content ul { padding-left: 22px; list-style: disc; margin-bottom: 16px; }
.legal__content a { color: var(--theme-color); text-decoration: underline; }
.legal__content strong { color: var(--title-color); }
.legal__box { margin-top: 20px; padding: 26px 30px; background: var(--light-bg); border-left: 4px solid var(--theme-color); }
.legal__box p { margin-bottom: 4px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1700px) {
    .nav__list { gap: 28px; }
    .header__phone { display: none; }
    .service-card__title { padding: 42px 34px 0; font-size: 26px; }
    .service-card__media { margin: 28px 34px 0; }
    .service-card__text { padding: 36px 34px 30px; font-size: 18px; }
    .service-card__link { padding: 26px 34px; font-size: 20px; }
    .services__grid { gap: 30px; }
}

@media (max-width: 1440px) {
    .section { padding: 90px 0; }
    .header__inner { padding: 0 24px; gap: 24px; }
    .nav { padding-left: 24px; }
    .nav__list { gap: 22px; }
    .nav__link { font-size: 17px; }
    .about__brand { padding-left: 50px; }
    .about__brand-label { left: 200px; font-size: 20px; }
    .about__content { padding: 110px 50px 80px 50px; }
    .about__features { padding-top: 110px; }
    .feature { padding: 40px 40px; grid-template-columns: 44px 1fr 66px; }
    .feature__title { font-size: 24px; }
    .feature__icon { width: 40px; padding-left: 24px; }
    .about__row { grid-template-columns: 1fr; }
    .stat-card { max-width: 420px; }
    .why__grid { grid-template-columns: 1fr 380px 1fr; gap: 40px; }
    .why-item__title { font-size: 27px; }
    .why-item__text { font-size: 18px; }
    .step__title { font-size: 25px; }
    .step__text { font-size: 17px; }
    .step__label { font-size: 15px; }
    .process__grid { --step-half: 320px; }
    .step__top, .step__bottom { padding: 0 14px; }
    .process__grid { gap: 24px; }
}

@media (max-width: 1200px) {
    :root { --header-h: 84px; }
    .header__cta { display: none; }
    .burger { display: block; }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 30px var(--gutter) 40px;
        border: 0;
        background: var(--white);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .4s var(--ease), visibility .4s;
    }
    .nav.is-open { transform: none; visibility: visible; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list li { border-bottom: 1px solid var(--border); }
    .nav__link { padding: 16px 0; font-size: 22px; }
    .nav__link::after { display: none; }
    .nav__cta { display: inline-flex; }
    body.menu-open { overflow: hidden; }

    .services__grid { grid-template-columns: repeat(2, 1fr); }

    .about__top,
    .about__body { grid-template-columns: 1fr; }
    .about__brand { border-right: 0; border-bottom: 1px solid var(--border); }
    .about__content { border-right: 0; padding-bottom: 60px; }
    .about__features { padding: 0 0 20px; }
    .feature { padding: 36px 50px; }

    .why__grid { grid-template-columns: 1fr 1fr; }
    .why__center { display: none; }
    .why-item__num::after { display: none; }

    .process__grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
    .process__grid::before { display: none; }
    /* stacked cards: same order for every step (icon, title, number, text) */
    .step { padding: 0 20px 40px; }
    .step::before,
    .step--alt::before { top: 64px; bottom: 0; background: linear-gradient(180deg, #f2f5f6 0%, #fafbfb 100%); }
    .step__top,
    .step__bottom { display: contents; }
    .step__arrow { display: none; }
    .step__icon { order: 1; }
    .step__head { order: 2; padding: 30px 0 0 !important; margin: 0 !important; }
    .step__num { order: 3; --num: 60px; margin: 22px 0; font-size: 20px; }
    .step__text { order: 4; margin: 0 !important; }

    .contact__grid { grid-template-columns: 1fr; gap: 50px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .hero__controls { top: auto; bottom: 30px; transform: none; flex-direction: row; align-items: center; left: var(--gutter); }
    .hero__arrow { width: 54px; height: 54px; margin: 0 10px 0 0; border-left: 1px solid rgba(255, 255, 255, .3); }
    .hero__content { padding-bottom: 60px; }
    .about__band { height: 200px; }
    .about__brand-label { position: static; display: block; }
    .about__brand-text { margin-top: 8px; }
    .cookie { flex-direction: column; align-items: stretch; }
    .cookie__actions { justify-content: stretch; }
    .cookie__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 767px) {
    :root { --gutter: 16px; --header-h: 72px; }
    body { font-size: 16px; }
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 44px; }
    .eyebrow { font-size: 15px; }
    .btn { min-height: 54px; padding: 12px 26px; font-size: 16px; }

    .logo__mark { width: 48px; }
    .logo__name { font-size: 22px; }
    .logo__tag { font-size: 11px; }

    .hero { height: auto; min-height: calc(100svh - var(--header-h)); max-height: none; }
    .hero__slides { position: relative; min-height: inherit; display: grid; }
    .hero__slide { position: relative; grid-area: 1 / 1; padding: 70px 0 120px; }
    .hero__content { padding-left: var(--gutter); padding-bottom: 0; }
    .hero__text { font-size: 16px; margin: 18px 0 30px; }

    .about__wrap { padding: 0; }
    .about__band { display: none; }
    .about__brand { padding: 40px var(--gutter); }
    .about__mission { padding: 34px var(--gutter); }
    .about__mission-text { font-size: 21px; }
    .about__content { padding: 60px var(--gutter) 50px; }
    .about__text { margin: 26px 0 34px; font-size: 16px; }
    .check-list li { font-size: 19px; padding-left: 56px; }
    .stat-card { padding: 30px; min-height: 210px; }
    .stat-card__value { left: 30px; }
    .feature { grid-template-columns: 1fr 40px; gap: 18px; padding: 30px var(--gutter); }
    .feature__arrow { display: none; }
    .feature__title { font-size: 21px; }
    .feature__text { margin-top: 10px; font-size: 16px; }
    .feature__icon { width: 38px; padding: 0; border: 0; }

    .services__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .service-card__title { min-height: 0; font-size: 24px; }

    .why__grid { grid-template-columns: 1fr; }
    .why__col { gap: 40px; }
    .why__col--right { text-align: left; }
    .why__col--right .why-item__head { flex-direction: row-reverse; justify-content: flex-end; }
    .why__col--right .why-item__text { margin-left: 0; }
    .why__col--left .why-item__num,
    .why__col--right .why-item__num { margin: 0 0 0 24px; }
    .why-item__icon { width: 72px; height: 72px; }
    .why-item__icon .icon-mask { width: 30px; height: 30px; }
    .why-item__num { width: 46px; height: 46px; font-size: 16px; }
    .why-item__head { margin-bottom: 20px; }
    .why-item__title { font-size: 23px; margin-bottom: 10px; }
    .why-item__text { font-size: 16px; }

    .process { padding-top: 20px; }
    .process__grid { grid-template-columns: 1fr; }
    .step__icon { width: 104px; height: 104px; box-shadow: 0 0 0 10px var(--white), 0 10px 26px rgba(0, 19, 33, .07); }
    .step__icon .icon-mask { width: 42px; height: 42px; }
    .step::before, .step--alt::before { top: 52px; }
    .step__title { font-size: 24px; }
    .step__label { font-size: 15px; }
    .step__text { font-size: 16px; }
    .process__cta { font-size: 18px; }
    .process__cta a { display: inline-block; margin-top: 6px; font-size: 21px; }

    .contact__form-wrap { padding: 30px 20px; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .form__title { font-size: 26px; }
    .contact__list li { font-size: 16px; gap: 16px; }
    .contact__icon { width: 48px; height: 48px; }
    .contact__list a { word-break: break-word; }

    .footer__grid { grid-template-columns: 1fr; gap: 34px; padding-top: 60px; }
    .footer__bottom-inner { flex-direction: column; }

    .cookie { left: 10px; right: 10px; bottom: 10px; padding: 22px 18px; max-height: calc(100vh - 20px); overflow-y: auto; }
    .cookie__actions { flex-direction: column; }

    .legal-hero { padding: 60px 0 50px; }
    .legal { padding: 50px 0 70px; }
    .legal__content h2 { font-size: 23px; }
}

/* ---------- Desktop: hero + top row of About fit into one screen (100vh) ---------- */
@media (min-width: 1201px) {
    :root { --about-top: 210px; }

    .hero {
        /* 4px = header top border */
        height: calc(100vh - var(--header-h) - 4px - var(--about-top));
        min-height: 380px;
        max-height: none;
    }
    .hero__pre,
    .hero__post { font-size: clamp(22px, 2vw, 32px); }
    .hero__title { margin: 4px 0 10px; font-size: clamp(56px, 6.6vw, 112px); }
    .hero__text { max-width: 560px; margin: 16px 0 28px; font-size: 17px; line-height: 1.6; }
    .hero .btn { min-height: 54px; padding: 12px 32px; font-size: 17px; }
    .hero__arrow { width: 58px; height: 58px; margin-bottom: 12px; }

    .about__band { height: var(--about-top); }
    .about__top { height: var(--about-top); }
    .about__brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 18px 50px 18px 84px;
    }
    .about__brand-label { position: static; margin: 0 0 4px 3.4em; font-size: 20px; line-height: 1.2; }
    .about__brand-text { margin-top: 0; font-size: clamp(56px, 4.6vw, 76px); }
    .about__mission { padding: 18px 60px; }
    .about__mission .eyebrow { margin-bottom: 8px; font-size: 16px; }
    .about__mission-text { font-size: 22px; line-height: 1.35; }
    .about__mission-place { margin-top: 8px; font-size: 15px; }
}

/* Shorter desktop screens (e.g. 1366x768): even slimmer About top row */
@media (min-width: 1201px) and (max-height: 860px) {
    :root { --about-top: 180px; }
    .hero__title { font-size: clamp(52px, 5.6vw, 96px); }
    .hero__text { margin: 12px 0 22px; }
    .about__brand-label { font-size: 17px; }
    .about__brand-text { font-size: clamp(48px, 4vw, 62px); }
    .about__mission-text { font-size: 19px; }
}
