:root {
    --primary: #1c5b96;
    --accent: #e31e24;
    --dark: #222;
    --light: #F2F2F2;
    --text-muted:rgba(0, 0, 0, 0.6);
    --gradient: #404040;
    --gradient2: #404040;
    /*--gradient: linear-gradient(135deg, rgba(227, 30, 36, 0.2) 0%, rgba(28, 91, 150, 0.2) 80%);*/
    /*--gradient2: linear-gradient(135deg, rgba(227, 30, 36, 1) 0%, rgba(28, 91, 150, 1) 80%);*/
}

.hero {
    position: relative;
    height: 80svh;
    overflow: hidden;
    background: #000;
}

.hero__poster,
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LCP */
.hero__poster {
    z-index: 1;
}

.hero__video {
    z-index: 2;
    opacity: 0;
    transition: opacity .6s ease;
}

.hero.is-playing .hero__video {
    opacity: 1;
}

.hero__content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 96px 16px 24px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,.35),
            rgba(0,0,0,.6)
    );
}

.hero__content h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 42px);
    max-width: 12em;
}

.container {
    width: min(100% - 40px, 1480px);
    margin-inline: auto;
}

@media(min-width: 768px) {
    .container {
        padding: 0 40px;
    }

}

/* Breadcrumbs */

.breadcrumbs {
    font-size: 13px;
    max-width: 1400px;
    padding: 20px;
    margin: auto;


    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: black;
}

.breadcrumbs span {
    color: #999;
}

.breadcrumbs-razdelitel {
    margin: 0 5px;
}



@media(min-width: 768px) {
    .breadcrumbs {
        font-size: 15px;
        padding: 20px 40px;

    }
}


/* WHAT WE DO */

.whatwedo__title {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    color: #111;
    padding: 40px 0 30px;
}

.whatwedo__text {
    max-width: 1400px;
    margin: 0 auto 14px;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    padding: 0 20px;
}

.whatwedo__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width:  1400px;
    margin: 50px auto 0;
    padding: 0 20px 40px ;
}

.whatwedo-card {
    font-size: 0.95rem;
    color: #111;
}

.whatwedo-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.whatwedo-card p {
    margin: 0 0 8px;
    line-height: 1.6;
    color: #222;
}

.whatwedo-card__link {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.whatwedo-card__link span {
    white-space: nowrap;
}

.whatwedo-list {
    margin: 8px 0 8px 18px;
    padding: 0;
    list-style: disc;
}

.whatwedo-list li {
    margin-bottom: 4px;
}

/* ≥ 768px — две колонки */
@media (min-width: 768px) {
    .whatwedo {
        padding: 90px 40px;
    }

    .whatwedo__title {
        font-size: 32px;
        padding: 60px 0;

    }

    .whatwedo__text {
        padding: 0 40px;
    }

    .whatwedo__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 60px;
        row-gap: 50px;
        padding: 0 40px 80px;
    }
}

/* ≥ 1100px — четыре колонки, как на скрине */
@media (min-width: 1100px) {
    .whatwedo__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* How-to  */
.howto {
    padding: 80px 20px 0;
    background:#fff;
    max-width: 1920px;
    margin: auto;
}

.howto__inner {
    display: grid;
    max-width: 1320px;
    background: #fff;
    margin: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    align-items: center;
    border-radius: 10px;
}

.howto__image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.howto_a {
    display: block;
    margin-bottom: 15px;
}

.howto__text {
    padding: 20px 20px 0 ;
}

.howto__text h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.howto__text h4 {
    font-size: 1.2rem;
}

.howto__text p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.howto__text ul {
    margin-top: 16px;
    padding-left: 20px;
    list-style: disc;
    list-style-position: outside;
    display: block;
    text-align: left;
}

.howto__text li {
    margin-top: 16px;

}

.btn-right-2 {
    margin-bottom: 20px;
}

.howto__text a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}


.spare-row__btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:180px;
    height:46px;
    border-radius:10px;
    border:1.5px solid #111;
    background:transparent;
    text-decoration:none !important;
    font-size: 16px;
    margin-top: 20px;
    font-weight:600;
    letter-spacing:.02em;
    color:#111;
    transition:background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.spare-row__btn--outline {
    background:transparent;
}

.spare-row__btn--filled {
    border-color:#d80000;
    background:#d80000;
    color:#fff;
}

.spare-row__btn:hover {
    transform:translateY(-1px);
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
}



@media (min-width: 768px) {
    .howto {
        padding: 80px 40px;
    }
    .btn-right-2 {
        margin-bottom: 20px;
        margin-left: 20px;
    }

    .howto__text h3 {
        font-size: 28px;
    }

    .btn-right {
        margin-left: 20px;
    }


    .howto__text {
        padding: 20px 20px 40px ;
    }
}
@media (min-width: 1025px) {

    .howto__inner {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        text-align: left;
    }
    .howto__image img {
        border-radius: 10px;
    }

    .howto__inner {
        border-radius: 10px;
    }

    .howto__text ul {
        text-align: left;
    }
}

/* MESSAGE FROM FOUNDER */
.founder-foto {
    max-height: 450px;
    border-radius: 10px;
    margin: 0 auto;
}

.founder {
    background: #f1f1f1;
    padding: 80px 20px;
    max-width: 1920px;
    margin: 0 auto;
}

.founder__wrap {
    max-width: 1320px;
    margin: auto;
    text-align: center;

}

.founder__title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 28px;
    margin-top: 28px;
}

.founder__text {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
}

.founder__author {
    font-size: 1.05rem;
    color: #111;
    text-align: right;
    max-width: 1000px;
    margin: 0 auto;
}

/* Desktop adjustments */
@media (min-width: 768px) {

    .founder-foto {
        margin: 0;
    }
    .founder {
        padding: 80px 40px;
    }

    .founder__wrap2 {
        max-width: 1320px;
        margin: 0 auto;
        display: flex;
        flex-direction: row;

    }
    .founder__title {
        font-size: 1.3rem;
        margin-top: 0;
    }

}

@media (min-width: 1100px) {

    .founder__text {
        font-size: 1.15rem;
    }

    .founder__author {
        font-size: 1.15rem;
    }

}

/* --- BLOG SECTION --- */
.blog-section {
    padding: 80px 0;
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-category {
    color: var(--gradient2);
}

.blog-date {
    color: var(--text-muted);
}

.blog-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

.blog-card h3 a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
}

.blog-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-more {
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
}
.blog-more:hover {
    color: var(--accent);
}


.blog-footer {
    text-align: center;
}


.blog-card__arrow {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.blog-more:hover .blog-card__arrow {
    transform: translateX(6px) rotate(-45deg);
    color: var(--accent);
}

.blog-gradient {
    background: var(--light) ;
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card.featured {
        grid-column: span 2;
        flex-direction: row;
        align-items: stretch;
    }

    .blog-card.featured .blog-image {
        width: 50%;
        height: 400px;
    }

    .blog-card.featured .blog-content {
        width: 50%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .blog-card.featured h3 {
        font-size: 32px;
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    color: #404040;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #404040;
    background: transparent;
    font-size: 16px;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;

    transition:
            transform 420ms cubic-bezier(.2,.8,.2,1),
            box-shadow 420ms cubic-bezier(.2,.8,.2,1),
            border-color 420ms cubic-bezier(.2,.8,.2,1);
}

.service-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 520ms cubic-bezier(.2,.8,.2,1);

    z-index: -1;
}

.service-link:hover::before {
    transform: scaleX(1);
}

.service-link:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    transform: translateY(-1px);
    color: #fff;
}

.service-link:focus-visible {
    outline: none;
    box-shadow:
            0 0 0 3px rgba(227,30,36,.35),
            0 12px 30px rgba(0,0,0,.35);
}


/* --- OFFERS SECTION --- */
.offers-section {
    padding: 80px 0;
    background-color: var(--light);
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.offer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.offer-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.offer-body {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offer-body h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 800;
}

.offer-body p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-offer {
    text-decoration: none;
    color: #404040;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 0;
    align-self: flex-start;
    transition: all 0.3s ease;
}


.btn-offer:hover .blog-card__arrow {
    transform: translateX(6px) rotate(-45deg);
    color: var(--accent);
}

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

@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- CONTACT & MAP SECTION --- */
.contact-map-section {
    padding: 80px 0;
    background: #fff;
}

.contact-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.contact-info-block {
    flex: 1;
}

.contact-info-block .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-icon-box svg {
    width: 35px;
    height: 35px;
}


.contact-text span {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-text a,
.contact-text p {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    margin: 0;
}

.map-container {
    border-radius: 10px;
    width: 100%;
    height: 400px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (min-width: 992px) {
    .contact-map-wrapper {
        flex-direction: row;
        align-items: center;
    }

    .contact-info-block {
        width: 55%;
    }

    .map-container {
        width: 45%;
        height: 500px;
    }
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    color: var(--dark);
    margin-bottom: 15px;
}
.section-head {
    text-align: center;
    margin-bottom: 50px;
}