/* ------------------------------
   Базовые стили и шрифты
------------------------------ */
:root {
    --basic-yellow: #FFD200;
    --basic-black: #21201F;
    --basic-gray-bg: #F5F4F2;
    --radius-main: 32px;
    --radius-card: 24px;
    --basic-darkgray-font: #3a3a3a;
    --basic-lightgray-font: gray;
}
@font-face {
    font-family: "YSGeo-Heavy";
    src: url("https://yastatic.net/s3/home/fonts/ys/4/text-geo-heavy.woff2") format("woff2"),
         url("https://yastatic.net/s3/home/fonts/ys/4/text-geo-heavy.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: "YS Text";
    src: url("https://yastatic.net/s3/home/fonts/ys/4/text-regular.woff2") format("woff2"),
         url("https://yastatic.net/s3/home/fonts/ys/4/text-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "YS Text";
    src: url("https://yastatic.net/s3/home/fonts/ys/4/text-bold.woff2") format("woff2"),
         url("https://yastatic.net/s3/home/fonts/ys/4/text-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "YS Geo";
    src: url("https://yastatic.net/s3/home/fonts/ys/4/text-geo-regular.woff2") format("woff2"),
         url("https://yastatic.net/s3/home/fonts/ys/4/text-geo-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "YS Text", Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: var(--basic-black);
    line-height: 1.2;
}
main {
    min-height: 80vh;
}
.geo800 {
    display: inline-block;
    font-family: "YSGeo-Heavy";
    font-weight: 800 !important;
}
/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Спиннер */
.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--basic-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
}
.section-border {
    position: relative;
    margin-top: -2rem;
    border-radius: var(--radius-main) var(--radius-main) 0 0;
    padding-bottom: 2rem;
}
.hidden {
    display: none;
}
.basic-yellow-background-striped {
    background: var(--basic-yellow) repeating-linear-gradient(
        -45deg, 
        var(--basic-yellow), 
        var(--basic-yellow) 60px, 
        rgba(255, 255, 255, 0.1) 60px, 
        rgba(255, 255, 255, 0.1) 120px
    );
}
.basic-yellow-background-iconized {
  background-color: #F5C842;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMzAuMzk5OTk5OTk5OTk5OTgiIGhlaWdodD0iMTUzLjYiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI0LDI0KSByb3RhdGUoLTIwKSI+PHN2ZyB4PSItMjQiIHk9Ii0yNCIgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgxMDAsNjUsMCwwLjEyKSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE1IDEybC04LjUgOC41Yy0uODMuODMtMi4xNy44My0zIDBhMi4xMiAyLjEyIDAgMCAxIDAtM0wxMiA5Ii8+PHBhdGggZD0iTTE3LjY0IDE1IDIyIDEwLjM2Ii8+PHBhdGggZD0ibTIwLjkxIDExLjctMS4yNS0xLjI1Yy0uNi0uNi0uOTMtMS40LS45My0yLjI1di0uNzVsLTI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z48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNzcuNiw4Ni40KSByb3RhdGUoNC42NDAwMDAwMDAwMDEyMzcpIj48c3ZnIHg9Ii0yNCIgeT0iLTI0IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDEwMCw2NSwwLDAuMTIpIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMjEuMyAxNS4zYTIuNCAyLjQgMCAwIDEgMCAzLjRsLTIuNiAyLjZhMi40IDIuNCAwIDAgMS0zLjQgMEwyLjcgOC43YTIuNCAyLjQgMCAwIDEgMC0zLjRsMi42LTIuNmEyLjQgMi40IDAgMCAxIDMuNCAweiIvPjxwYXRoIGQ9Im0xNC41IDEyLjUgMi0yIi8+PHBhdGggZD0ibTExLjUgOS41IDItMiIvPjxwYXRoIGQ9Im04LjUgNi41IDItMiIvPjxwYXRoIGQ9Im0xNy41IDE1LjUgMi0yIi8+PC9zdmc+PC9nPjwvc3ZnPg==");
  background-size: 230px 154px;
  background-repeat: repeat;
}
.btn, .header__button, .promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: "YSGeo-Heavy";
    font-weight: 800;
    font-size: 16px;
    border-radius: 16px;
    transition: transform 0.1s ease, background-color 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary, .header__button {
    background-color: var(--basic-yellow);
    color: var(--basic-black);
}

.btn-primary:hover, .header__button:hover {
    background-color: var(--basic-yellow);
    transform: scale(0.98);
}

.promo-button {
    background-color: var(--basic-black);
    color: #fff;
}
.block-title {
    font-family: "YSGeo-Heavy", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: lowercase;
    margin-left: 1rem;
}
.swiper-pagination-bullet {
    background: rgb(255, 255, 255);
    opacity: 50%;
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet-active {
    background: rgb(255, 255, 255);
    opacity: 1;
    width: 10px;
    height: 10px;
}
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.8rem;
    }
    .section-border {
        position: relative;
        margin-top: -2rem;
        border-radius: var(--radius-main) var(--radius-main) 0 0;
        padding-bottom: 2rem;
    }
}
/* ------------------------------
   Хедер (шапка)
------------------------------ */
.header {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 4rem;
    background-color: transparent;
    justify-content: center;
    z-index: 1001;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0 24px;
    box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 0 0 24px 24px;

}
.header__logo {
    position: relative;
    display: flex;
    gap: 5px;
}
.header__logo a {
    position: relative;
    font-family: "YSGeo-Heavy";
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
}
.header__logo a::after {
    content:'';
    background-color: var(--basic-yellow);
    height: 7px;
    width: 6rem;
    position: absolute;
    bottom: 0px;
    right: 0;
}
.header__nav {
    display: flex;
    gap: 20px;
    font-family: "YSGeo-Heavy";
    font-size: 16px;
}
.header__nav a {
    text-decoration: none;
    color: #1a1a1a;
    padding: 8px 0;
}
.header__nav a:hover {
    color: var(--main-yellow);
}
.burger__inner {
    display: none;
}
.burger__inner>input[type=checkbox] {
    display: none;
}
.burger__button {
    display: none;
}
.header .promo-button {
    display: none;
}
@media (max-width: 979px) {
    .header__container {
        padding: 12px 20px;
        gap: 20px;
    }
    .header__button {
        padding: 8px 20px;
    }
}
@media (max-width: 767px) {
    .header {
        height: 3rem;
        --header-height: 20vw;
    }
    .header__container {
        padding: 0.5rem 10px;
        background-color: var(--basic-gray-bg);
        border-radius: 0 0 24px 24px;
        gap: 3vw;
    }
    .header .promo-button {
        font-size: 0.9rem;
        padding: 0.3rem;
        display: flex;
        width: auto;
        cursor: pointer;
    }
    .header__nav {
        display: none;
    }
    .burger__inner {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      height: 100%;
      margin-left: 3vw;
    }

    .burger__inner :checked~.burger__menu {
      -webkit-transform: translateX(-40vw);
      transform: translateX(-40vw);
    }

    .burger__inner :checked~.burger__hover {
      display: block;
      opacity: 1;
      left: 0;
      z-index: -1;
    }
    .header__button {
        display: none;
    }
    .burger__button {
        display: block;
        box-sizing: unset;
        position: relative;
        padding: 1.5vw;
        width: 4.5vw;
        z-index: 99;
        cursor: pointer;
    }
    .burger__hover {
      position: fixed;
      top: 0;
      left: 105vw;
      height: 100vh;
      width: 100vw;
      opacity: 0;
      background-color: rgba(0, 0, 0, 0.6);
      -webkit-transition-property: opacity;
      transition-property: opacity;
      -webkit-transition-timing-function: ease-out;
      transition-timing-function: ease-out;
      -webkit-transition-timing-function: ease-in;
      transition-timing-function: ease-in;
      -webkit-transition-duration: 0.3s;
      transition-duration: 0.3s;
    }
    .burger__menu {
      position: fixed;
      top: 25vw;
      height: auto;
      width: 60vw;
      padding: 3vw 2vw 2vw 2vw;
      text-align: left;
      background-color: white;
      border-radius: 5vw;
      -webkit-transition-duration: 300ms;
      transition-duration: 300ms;
      -webkit-transition-property: -webkit-transform;
      transition-property: -webkit-transform;
      transition-property: transform;
      transition-property: transform, -webkit-transform;
      -webkit-transform: translateX(100%);
      transform: translateX(100%);
      z-index: 50;
    }

    .burger__links {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      padding: 0;
    }

    .burger__menu {
      background-color: #FFD700;
    }

    .burger__links a {
      margin: 1vw;
      padding: 4vw;
      font-size: 3.5vw;
      color: black;
      border-radius: 3vw;
      background-color: #FFF;
      text-decoration: none;
    }

    .burger__links a:first-child {
      margin-top: 0;
    }

    .burger__links a:hover {
      background-color: #EEEFF1 !important;
    }
}
/* ------------------------------
   Промо-блок
------------------------------ */
.promo-block {
    position: relative;
    padding: 40px 0;
    background-color: var(--basic-gray-bg);
    background-size: cover;
    background-position-x: right;
    overflow: hidden;
    height: 90svh;
    min-height: 500px;
    display: flex;
    align-items: start;
    justify-content: center;
}
.promo-image-front {
    position: absolute;
    bottom: 0;
    transform: translate(-50%);
    height: 80%;
    z-index: 0;
}
.promo-content {
    position: relative;
    background-color: transparent;
    border-radius: var(--radius-main);
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    margin-top: 4rem;
    z-index: 1;
    padding: 0;
}
.promo-title-wrapper {
    position: relative;
    padding: 0 1rem;
    background-color: crimson;
}
.promo-title {
    font-family: "YSGeo-Heavy";
    font-size: 3.5rem;
}
.promo-subtitle {
    position: relative;
    font-size: 3rem;
    /* font-weight: 400; */
    font-family: "YSGeo-Heavy";
    max-width: 500px;
    background-color: cornflowerblue;
    padding: 0.5rem 1rem;
    margin-top: -0.5rem;
    margin-right: 3rem;
}
.promo-city {
    background: var(--basic-gray-bg);
    color: var(--basic-darkgray-font);
    font-family: "YSGeo-Heavy";
    padding: 0.5rem 1rem;
    font-size: 3rem;
    margin-right: 5rem;
    margin-top: -0.5rem;
    z-index: 1;
}
.promo-button-wrapper {
    background-color: var(--basic-gray-bg);
    position: absolute;
    bottom: 4rem;
    right: 0;
    padding: 0.5rem 0.5rem;
    border-radius: var(--radius-card);
    /* justify-content: center; */
    display: flex;
}
.promo-button {
    background-color: var(--basic-yellow);
    color: var(--basic-black);
    padding: 14px 40px;
    border-radius: var(--radius-card);
    font-family: "YSGeo-Heavy";
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
}
.promo-button:hover {
    background-color: var(--basic-gray-bg);
}
@media (max-width: 767px) {
    .promo-block {
        padding: 60px 0 120px;
        margin-top: 0;
    }
    .promo-image-front {
        transform: translate(-15%);
        height: 70%;
    }
    .promo-content {
        padding: 0;
        margin-top: 0;
    }
    .promo-title {
        font-size: 1.9rem;
    }
    .promo-title-wrapper {
        padding: 0.5rem 1rem;
    }
    .promo-subtitle {
        margin-right: 0.5rem;
        font-size: 1.9rem;
    }
    .promo-city {
        font-size: 1.9rem;
        margin-right: 1.18rem;
    }
    .promo-button-wrapper {
        bottom: 3rem;
        width: 85%;
        background-color: var(--basic-gray-bg);
        display: none;
    }
    .promo-button {
        width: 100%;
        justify-content: center;
    }
}
/* ------------------------------
   Футер
------------------------------ */
.footer {
    background-color: #1a1a1a;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}
.footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}
/* ------------------------------
   Услуги (сетка)
------------------------------ */
#services {
    scroll-margin-top: 5rem;
    scroll-behavior: smooth;
}
#tools {
    scroll-margin-top: 5rem;
    scroll-behavior: smooth;
}
.services {
    position: relative;
    background-color: var(--basic-yellow);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
    background-color: var(--basic-gray-bg);
    border-radius: var(--radius-card);
}
.services-grid .service-card:nth-child(n + 9) {
    display: none;
}
.services-button-wrapper {
    display: flex;
    justify-content: center;
}
.services-expand-button {
    margin-top: 1rem;
}
.service-card {
    display: grid;
    grid-template-rows: auto auto;
    overflow: hidden;
    transition: transform 0.2s;
    text-decoration: none;
    color: lightgray;
}
.service-card .service-card__link {
    text-decoration: none;
    display: block;
    cursor: pointer;
    color: unset;
}
.service-card:hover {
    transform: translateY(-5px);
}

.service-card__footer {
    position: relative;
    align-content: end;
}

.service-order-actions {
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: calc(100% - 8px);
    left: 16px;
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.service-order-actions[hidden] {
    display: none;
}
.service-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.service-action-btn:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.service-image {
    position: relative;
    background-color: #fff;
    border-radius: 18px;
    width: 100%;
    height: 10rem;
    overflow: hidden;
}
.service-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.service-price {
    color: var(--basic-darkgray-font);
    margin-top: 0.5rem;
}
.service-name {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--basic-lightgray-font);
}
.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    display: none; /* Если не пригодится - удалить блок из шаблона */
}
.service-order-button {
    width: 100%;
    height: 2rem;
    margin-top: 0.5rem;
    background-color: var(--basic-yellow);
}
@media (max-width: 979px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services-grid .service-card:nth-child(n + 9) {
        display: block;
    }
    .services-grid .service-card:nth-child(n + 7) {
        display: none;
    }
}
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid .service-card:nth-child(n + 9) {
        display: none;
    }
    .service-image {
        height: 12rem;
    }
}
.services-grid.expanded .service-card {
    display: block;
}
/* ------------------------------
   Преимущества
------------------------------ */
#advantages {
    scroll-margin-top: 5rem;
}
.advantages {
    background-color: #fff;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.advantage-item {
    background: var(--basic-gray-bg);
    border-radius: var(--radius-card);
    padding: 32px;
    text-align: left;
}
.advantage-item h3 {
    font-family: "YSGeo-Heavy";
    font-size: 24px;
    margin-bottom: 12px;
    color: #1a1a1a;
}
.advantage-item p {
    font-size: 16px;
    color: #555;
}
@media (max-width: 767px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .advantage-item h3 {
        font-size: 24px;
    }
}
/* ------------------------------
   Бегущая строка
------------------------------ */
.runline-start {
    --view-width: -1069px;
}
.running-line {
    width: 100%;
    overflow: hidden;
}
.running-line-wrapper{
    padding:0 0 6rem;
}
.running-line p {
    font-family: "YSGeo-Heavy";
    font-size: 100px;
    font-weight: 900;
}
.run {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    animation: run 5s linear infinite;
}
.run span::after {
    content: "";
    display: inline-block;
    margin-left: 45px;
    margin-right: 15px;
    height: 110px;
    width: 125px;
    transform: translateY(15px);
    background: url("/svg/tools-chainsaw-100x100.svg");
    background-repeat: no-repeat;
    background-size: contain;
}
@keyframes run {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(var(--view-width));
    }
}
@media (max-width: 767px) {
    .runline-start {
        --view-width: -532px;
    }
    .running-line-wrapper{
        padding:0 0 5rem;
    }
    .running-line p {
        font-size: 50px;
    }
    .run span::after {
        height: 62px;
        width: 70px;
        margin-left: 20px;
        margin-right: 0;
    }
}

/* ------------------------------
   Галерея (слайдер)
------------------------------ */
#gallery {
    scroll-margin-top: 5rem;
}
.gallery {
    background-color: var(--basic-yellow);
}
.gallery-slider.swiper-horizontal {
  --swiper-navigation-sides-offset: 1rem;
}
.gallery-slider {
    width: 100%;
    overflow: hidden;
}
.gallery-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}
.gallery-prev, .gallery-next {
    color: var(--basic-yellow);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}
.gallery-prev::before, .gallery-next::before {
    position: absolute;
    content: '';
    height: 2.5rem;
    width: 2.5rem;
    background-color: #1f1f1f;
    opacity: 45%;
    border-radius: 50%;
    z-index: -1;
}
.gallery-next:hover, .gallery-prev:hover {
    filter: drop-shadow(0 0 5px white);
}
.gallery-prev:hover::before, .gallery-next:hover::before {
    opacity: 85%;
}
@media (max-width: 767px) {
    .gallery-slide img {
        height: 250px;
    }
    .gallery-prev, .gallery-next {
        display: none;
    }
}
/* ------------------------------
   Отзывы (слайдер)
------------------------------ */
#reviews {
    scroll-margin-top: 5rem;
}
.reviews {
    background-color: var(--basic-gray-bg);
}
.reviews-yellow-bg {
    background-color: #FFD200;
    border-radius: 40px;
    padding: 40px 0 20px 40px;
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-top: 2rem;
}
.reviews-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.reviews-slider .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}
.review-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 10px;
    display: grid;
    gap: 0.8rem;
    height: 15rem;
    grid-template-columns: 1fr 1fr;
}
.review-photo {
    overflow: hidden;
    border-radius: 0.6rem;
}
.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-content {
    display: grid;
    gap: 8px;
    grid-template-rows: 1.5rem 2rem 8rem;
}
.review-city-badge {
    background: #21201F;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    width: fit-content;
}
.review-author-name {
    font-family: "YSGeo-Heavy", sans-serif;
    font-size: 28px;
}
.review-text-wrapper {
    position: relative;
    height: 100%;
}
.review-text {
    position: relative;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #21201F;
    overflow: hidden;
    transition: max-height 0.2s ease;
}
.reviews-controls {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
}
.reviews-prev, .reviews-next {
    margin-top: 0.5rem;
    width: 30px !important;
    height: 30px !important;
    color: #000 !important;
    bottom: 0;
    top: unset !important;
}
.reviews-next {
    margin-right: 2rem;
}
.reviews-prev::after, .reviews-next::after {
    font-size: 24px !important;
    font-weight: bold;
}
@media (max-width: 768px) {
    .reviews-yellow-bg {
        padding: 30px 20px 0;
    }

    .review-card {
        background: none;
        border-radius: 0;
        padding: 0;
        display: grid;
        height: 100%;
        grid-template-columns: none;
        grid-template-rows: 1fr 0.8fr;
    }

    .review-content {
        background: #fff;
        border-radius: var(--radius-card);
        padding: 15px;
        grid-template-rows: 1.5rem 2rem 5rem;
    }
    .review-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-card);
    }
    .review-author-name {
        font-size: 1.2rem;
    }
    .reviews-controls {
        margin-top: 2rem;
    }
    .reviews-next, .reviews-prev {
        display: none;
    }
}
.review-text-wrapper.is-clamped .review-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}
.review-read-more {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--basic-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s;
}

.review-read-more:hover {
    opacity: 0.75;
}
/* =============================================
   Модальное окно
   ============================================= */

.review-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.review-modal.is-open {
    display: flex;
}

.review-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    animation: reviewFadeIn 0.2s ease;
}
.review-modal__window {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: reviewSlideUp 0.25s ease;
}
.review-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.review-modal__close:hover {
    background: rgba(0, 0, 0, 0.07);
}

.review-modal__author {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 16px;
    color: #222;
}

.review-modal__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #444;
    white-space: pre-line;
}

@keyframes reviewFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes reviewSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-detail {
    margin-top: 2rem;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 50px;
    margin: 40px 0;
}
.product-gallery-wrapper {
    width: 100%;
}
.product-gallery {
    display: flex;
    gap: 20px;
}
.thumbs-swiper {
    height: 4rem;
}
.thumbnails-column img.active {
    opacity: 1;
    border: 2px solid var(--accent);
}
.main-image {
    margin-bottom: 1rem;
    border-radius: var(--radius-card);
    overflow: hidden;
    width: 100%;
    height: 20rem;
    position: relative;
}
.main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.thumb-image {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}
.thumb-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-image.swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid var(--basic-yellow);
}
.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--basic-darkgray-font);
    margin-bottom: 1rem;
}
.product-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--basic-lightgray-font);
}
.product-gallery .swiper-button-prev {
    color: var(--basic-black);
}
.product-gallery .swiper-button-next {
    color: var(--basic-black);
}
.product-description {
    margin-top: 1rem;
}
.product-description h2 {
    margin-bottom: 1rem;
}
.order-btn {
    width: 100%;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        margin: 0;
    }
    .product-gallery {
        flex-direction: column-reverse;
    }
    .thumbnails-column {
        flex-direction: row;
        width: 100%;
    }
    .thumbs-swiper {
        max-width: 90vw;
    }
    .product-gallery {
        max-width: 90vw;
    }
}

/* =============================================
   Модальное окно
   ============================================= */

.order-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.order-modal.is-open {
    display: flex;
}

.order-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    animation: reviewFadeIn 0.2s ease;
}
.order-modal__window {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: reviewSlideUp 0.25s ease;
}
.order-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.order-modal__close:hover {
    background: rgba(0, 0, 0, 0.07);
}

.order-modal__header {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 16px;
    color: #222;
}

.order-modal__content {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #444;
    display: grid;
    justify-content: center;
}
.order-form-group label {
    width: 100%;
    display: block;
}
.order-form-group input {
    width: 15rem;
    border-bottom: 1px solid gray;
    border-top: none;
    border-left: none;
    border-right: none;
}
.order-form-group textarea {
    width: 15rem;
}

/* ------------------------------
   Контакты
------------------------------ */
#contacts {
    scroll-margin-top: 5rem;
}
.contacts {
    background: var(--basic-yellow) repeating-linear-gradient(
        -45deg,
        var(--basic-yellow),
        var(--basic-yellow) 60px,
        rgba(255, 255, 255, 0.1) 60px,
        rgba(255, 255, 255, 0.1) 120px
    );
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    padding: 0.8rem;
    background-color: var(--basic-black);
    border-radius: var(--radius-card);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.contact-item:hover {
    opacity: 0.75;
}

.contact-item__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item__value {
    font-size: 1rem;
    font-family: "YS Text", sans-serif;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Модальное окно главный экран
   ============================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal__close:hover { color: #333; }

.modal__title { margin: 0 0 4px; }

.modal__subtitle {
    color: #666;
    margin: 0 0 20px;
    font-size: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.form-group label { font-size: 14px; font-weight: 500; }

.form-group input,
.form-group textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #999; }

.modal__error { color: #e53935; font-size: 14px; margin-top: 8px; }
.modal__success { color: #43a047; font-size: 14px; margin-top: 8px; }