/* Decka AS — основные стили
   Методология БЭМ. Без CSS-фреймворков.
   Адаптив: css/media-style.css */

:root {
    --bg: #f7f7f3;
    --paper: #fff;
    --ink: #111411;
    --muted: #686d67;
    --line: #dedfd8;
    --accent: #f0c400;
    --accent-blue: #2b7de9;
    --accent-red: #e23d3d;
    --dark: #121820;
    --max: 1240px;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Block: container */
.container {
    width: min(calc(100% - 64px), var(--max));
    margin: 0 auto;
}

/* Block: section */
.section {
    padding: 130px 0;
}

.section--compact {
    padding: 45px 0;
}

/* Block: eyebrow */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow__line {
    width: 34px;
    height: 1px;
    background: var(--ink);
}

.eyebrow--light {
    color: #bfc4bc;
}

/* Block: section-title */
.section-title {
    margin: 0;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.section-title em,
.hero__title em,
.cta__title em,
.page-hero__title em,
.contact-panel__title em {
    font-family: var(--serif);
    font-weight: 500;
}

/* Block: section-head */
.section-head {
    margin-bottom: 70px;
}

.section-head--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;
}

.section-head--split > .section-head__text {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
}

/* Block: header */
.header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    transition: 0.3s;
}

.header--scrolled {
    background: rgba(247, 247, 243, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

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

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-image {
    display: block;
    height: 42px;
    width: auto;
}

.header__toggle {
    display: none;
}

.header__toggle-line {
    width: 16px;
    height: 1px;
    background: var(--ink);
    margin: auto;
}

/* Block: nav */
.nav {
    display: flex;
    align-items: center;
    gap: 31px;
}

.nav__link {
    font-size: 13px;
    font-weight: 600;
    color: #424741;
    transition: 0.2s;
}

.nav__link:hover {
    color: var(--accent-blue);
}

/* Block: lang-switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lang-switcher__item {
    color: var(--muted);
    transition: color 0.2s;
    padding: 2px 4px;
    border-radius: 2px;
}

.lang-switcher__item:hover,
.lang-switcher__item.is-active {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.05);
}

.lang-switcher__sep {
    color: var(--line);
    font-size: 10px;
}

/* Block: btn */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 56px;
    padding: 0 25px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.btn__icon {
    font-size: 18px;
}

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

.btn--small {
    min-height: 44px;
    padding: 0 19px;
}

.btn--primary {
    background: var(--ink);
    color: #fff;
}

.btn--primary:hover {
    background: #292d28;
}

.btn--ghost {
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: #aaa;
}

.btn--light {
    background: var(--accent);
    color: var(--ink);
    border: 0;
}

/* Block: hero */
.hero {
    padding-top: 180px;
    padding-bottom: 110px;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero__title {
    max-width: 650px;
    margin: 0;
    font-size: clamp(58px, 7.2vw, 104px);
    line-height: 0.93;
    letter-spacing: -0.065em;
    font-weight: 600;
}

.hero__text {
    max-width: 550px;
    margin: 32px 0;
    color: var(--muted);
    font-size: 18px;
}

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

.hero__meta {
    display: flex;
    gap: 34px;
    margin-top: 65px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__meta-num {
    font-size: 11px;
}

.hero__meta-label {
    font-size: 11px;
    color: var(--muted);
}

.hero__visual {
    position: relative;
    min-height: 580px;
    display: grid;
    place-items: center;
}

.hero__orb {
    position: absolute;
    width: 310px;
    height: 310px;
    right: -20px;
    bottom: 30px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.9;
}

.hero__caption {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

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

/* Block: hero-card */
.hero-card {
    position: relative;
    z-index: 2;
    width: min(100%, 530px);
    height: 460px;
    padding: 22px;
    background: #152238;
    border-radius: 4px;
    box-shadow: 25px 30px 70px rgba(0, 0, 0, 0.13);
    color: #e8ece5;
    transform: rotate(2deg);
}

.hero-card__top,
.hero-card__bottom {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 0.14em;
    color: #9fa69d;
}

.hero-card__bottom {
    position: absolute;
    bottom: 22px;
    left: 22px;
    right: 22px;
}

.hero-card__status {
    color: var(--accent);
}

.hero-card__map {
    position: absolute;
    inset: 60px 20px 55px;
    overflow: hidden;
}

/* Block: map */
.map__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
}

.map__route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.map__route-path {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 1.5;
    stroke-dasharray: 7 7;
}

.map__node {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 9px;
}

.map__node--ua {
    left: 13%;
    bottom: 19%;
}

.map__node--no {
    right: 12%;
    top: 22%;
}

.map__pulse {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(240, 196, 0, 0.16);
}

.map__pulse--1 {
    left: 21%;
    bottom: 29%;
}

.map__pulse--2 {
    right: 20%;
    top: 31%;
    background: var(--accent-red);
    box-shadow: 0 0 0 8px rgba(226, 61, 61, 0.16);
}

/* Block: trust */
.trust {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.trust__label {
    font-size: 12px;
    color: var(--muted);
}

.trust__items {
    display: flex;
    gap: 38px;
}

.trust__item {
    font-size: 10px;
    letter-spacing: 0.13em;
}

/* Block: services */
.services {
    background: #fff;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

/* Block: service-card */
.service-card {
    min-height: 390px;
    padding: 28px 25px 30px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.service-card:first-child {
    border-left: 1px solid var(--line);
}

.service-card--accent {
    background: var(--accent);
}

.service-card--accent .service-card__text,
.service-card--accent .service-card__number {
    color: #3d3a28;
}

.service-card__number {
    font-size: 10px;
    color: var(--muted);
}

.service-card__title {
    margin: 70px 0 15px;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.service-card__text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.service-card__link {
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
}

.service-card__link .btn__icon {
    margin-left: 8px;
}

/* Block: benefits */
.benefits__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 120px;
}

.benefits__intro-text {
    max-width: 440px;
    margin-top: 35px;
    color: var(--muted);
}

.benefits__list {
    border-top: 1px solid var(--line);
}

/* Block: benefit */
.benefit {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 29px 0;
    border-bottom: 1px solid var(--line);
}

.benefit__num {
    font-size: 10px;
    color: var(--muted);
}

.benefit__title {
    margin: 0 0 7px;
    font-size: 18px;
}

.benefit__text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Block: process */
.process {
    background: #e9ebe5;
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #cfd2cb;
}

/* Block: step */
.step {
    min-height: 230px;
    padding: 25px;
    border-right: 1px solid #cfd2cb;
    border-bottom: 1px solid #cfd2cb;
}

.step:nth-child(3n + 1) {
    border-left: 1px solid #cfd2cb;
}

.step__num {
    display: block;
    font-size: 10px;
    color: #747a72;
}

.step__title {
    margin: 55px 0 8px;
    font-size: 19px;
}

.step__text {
    margin: 0;
    max-width: 230px;
    font-size: 13px;
    color: #687068;
}

/* Block: quote */
.quote {
    background: var(--dark);
    color: #fff;
}

.quote__inner {
    text-align: center;
    max-width: 950px;
}

.quote__mark {
    display: block;
    color: var(--accent);
    font: 80px/1 var(--serif);
    height: 55px;
}

.quote__text {
    margin: 0;
    font: 500 clamp(34px, 4.5vw, 60px) / 1.08 var(--serif);
    letter-spacing: -0.035em;
}

.quote__line {
    width: 50px;
    height: 1px;
    background: #62685f;
    margin: 45px auto 18px;
}

.quote__caption {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #969c94;
}

/* Block: testimonials */
.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Block: testimonial */
.testimonial {
    padding: 42px;
    background: #fff;
    border: 1px solid var(--line);
}

.testimonial__stars {
    font-size: 11px;
    letter-spacing: 3px;
}

.testimonial__text {
    font: 500 24px / 1.35 var(--serif);
    margin: 45px 0;
}

.testimonial__author {
    font-size: 11px;
    color: var(--muted);
}

/* Block: blog */
.blog {
    background: #fff;
}

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

/* Block: blog-card */
.blog-card {
    border: 1px solid var(--line);
    background: var(--bg);
}

.blog-card__image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-card__image::before,
.blog-card__image::after {
    content: "";
    position: absolute;
}

.blog-card__image--route {
    background: linear-gradient(135deg, #dfe4d9, #aab0a2);
}

.blog-card__image--route::before {
    width: 180%;
    height: 1px;
    background: #30362e;
    top: 55%;
    left: -30%;
    transform: rotate(-21deg);
}

.blog-card__image--route::after {
    width: 75px;
    height: 75px;
    border: 1px solid #30362e;
    border-radius: 50%;
    left: 55%;
    top: 24%;
}

.blog-card__image--factory {
    background: #c9cec3;
}

.blog-card__image--factory::before {
    width: 150px;
    height: 150px;
    border: 1px solid #42483f;
    left: 18%;
    top: 25%;
    transform: rotate(45deg);
}

.blog-card__image--factory::after {
    width: 240px;
    height: 1px;
    background: #42483f;
    left: 10%;
    top: 55%;
}

.blog-card__image--contract {
    background: #e1e4dc;
}

.blog-card__image--contract::before {
    width: 190px;
    height: 250px;
    background: #fff;
    left: 30%;
    top: 18%;
    box-shadow: 8px 8px 0 #c9cec3;
    transform: rotate(-7deg);
}

.blog-card__tag {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 7px 9px;
    background: var(--accent);
    font-size: 9px;
    font-weight: 700;
}

.blog-card__body {
    padding: 25px;
}

.blog-card__meta {
    font-size: 10px;
    color: var(--muted);
}

.blog-card__title {
    margin: 15px 0 25px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.blog-card__link,
.text-link {
    font-size: 11px;
    font-weight: 700;
}

/* Block: faq */
.faq__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 120px;
}

.faq__intro-text {
    max-width: 350px;
    color: var(--muted);
    margin-top: 30px;
}

/* Block: accordion */
.accordion__item {
    border-top: 1px solid var(--line);
}

.accordion__item:last-child {
    border-bottom: 1px solid var(--line);
}

.accordion__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 26px 0;
    border: 0;
    background: none;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.accordion__icon {
    font-size: 22px;
    font-weight: 400;
    transition: 0.25s;
}

.accordion__button[aria-expanded="true"] .accordion__icon {
    transform: rotate(45deg);
}

.accordion__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s;
}

.accordion__text {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 650px;
}

.accordion__item.is-open .accordion__content {
    grid-template-rows: 1fr;
}

.accordion__item.is-open .accordion__text {
    padding-bottom: 25px;
}

/* Block: cta */
.cta {
    padding-bottom: 130px;
}

.cta__inner {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
    padding: 80px;
    background: var(--dark);
    color: #fff;
}

.cta__title {
    font-size: clamp(50px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    margin: 0;
}

.cta__text {
    max-width: 500px;
    color: #aeb4ac;
    margin-top: 30px;
}

/* Block: contact-form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form__label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aeb4ac;
}

.contact-form__input,
.contact-form__textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #4e544d;
    background: transparent;
    color: #fff;
    outline: 0;
    resize: vertical;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--accent);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #697068;
}

.contact-form .btn {
    margin-top: 8px;
}

.form-note {
    font-size: 9px;
    color: #727970;
    margin: 0;
}

/* Block: footer */
.footer {
    background: #fff;
    padding: 0 0 25px;
}

.footer__stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent) 52%, var(--accent-red) 100%);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    padding-top: 70px;
}

.header__logo--footer {
    margin-bottom: 20px;
}

.header__logo--footer .header__logo-image {
    height: 56px;
}

.footer__text {
    font-size: 12px;
    color: var(--muted);
}

.footer__links {
    display: flex;
    gap: 120px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__label {
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b9089;
}

.footer__link {
    font-size: 12px;
}

.footer__link:hover {
    color: var(--accent-blue);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: #8b9089;
}

/* Block: reveal */
.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal--delay {
    transition-delay: 0.12s;
}

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

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

/* Block: page-hero */
.page-hero {
    padding: 180px 0 110px;
    background: #fff;
}

.page-hero__title {
    margin: 0;
    font-size: clamp(56px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.page-hero__text {
    max-width: 570px;
    margin: 30px 0;
    color: var(--muted);
    font-size: 18px;
}

/* Block: article */
.article {
    max-width: 1000px;
}

.article__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 65px;
}

.article__item {
    padding: 25px;
    border-top: 1px solid var(--ink);
    background: #fff;
}

.article__title {
    margin: 0 0 18px;
    font-size: 20px;
}

.article__text {
    color: var(--muted);
    font-size: 14px;
}

/* Block: page-media */
.page-media__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: #e1e4dc;
}

.page-media__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-media__tag {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 7px 9px;
    background: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Block: contact-panel */
.contact-panel {
    padding: 8px 0;
}

.contact-panel__title {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 60px;
}

.contact-panel__text {
    max-width: 500px;
    color: #aeb4ac;
}

.contact-panel__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 38px;
}

.contact-panel__link {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 600;
}

.contact-panel__hint {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.contact-panel__name {
    margin-top: 10px;
    color: #bfc4bc;
    font-size: 13px;
    font-weight: 500;
}

/* Block: gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gallery__item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e1e4dc;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.gallery__item:hover .gallery__image {
    transform: scale(1.05);
}

/* Block: lightbox */
.lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    place-items: center;
    padding: 30px;
    background: rgba(17, 20, 17, 0.92);
}

.lightbox:target {
    display: grid;
}

.lightbox__image {
    max-width: min(100%, 1000px);
    max-height: 85vh;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 34px;
}

/* Block: company-offers */
.company-offers {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.company-offers__head {
    margin-bottom: 45px;
}

.company-offers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.company-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #b8bcb4;
}

.company-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.company-card__logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 5px;
    flex-shrink: 0;
}

.company-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-card__meta {
    display: flex;
    flex-direction: column;
}

.company-card__tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 2px;
}

.company-card__name {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

.company-card__text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 24px;
    flex-grow: 1;
}

.company-card__link {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    margin-top: auto;
}

.company-card__link:hover {
    color: var(--accent-blue);
}

