/* Блок услуг на главной и стили внутренних страниц услуг */

#services {
    padding: 110px 0 40px;
}

#articles {
    padding: 40px 0 20px;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0px 0px 30px 0px rgba(25, 25, 25, 0.1);
    color: var(--dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 0px 40px 0px rgba(0, 159, 227, 0.25);
}

.service-card-title {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 14px;
}

.service-card-desc {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 28px;
    flex-grow: 1;
}

.service-card-link {
    font-size: 16px;
    font-weight: bold;
    color: #009fe3;
}

/* Внутренние страницы */

.page-header {
    padding-bottom: 0;
}

#main.page-header {
    min-height: auto;
    overflow: visible;
    background: none;
}

.page-header .header {
    margin-bottom: 0;
}

.related-services {
    margin-top: 8px;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--blue);
    margin-bottom: 28px;
}

.breadcrumbs a {
    color: var(--blue);
    text-decoration: underline;
}

.page-hero {
    padding: 40px 0 80px;
}

.page-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--dark);
}

.page-hero-title span {
    color: #009fe3;
}

.page-hero-desc {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--blue);
    max-width: 860px;
    margin-bottom: 40px;
}

.page-section {
    padding-bottom: 90px;
}

.page-section .section-title {
    margin-bottom: 40px;
}

.page-text {
    font-size: 18px;
    line-height: 1.6;
    max-width: 860px;
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-item {
    padding: 32px;
    border-radius: 8px;
    background-color: #ebf6ff;
}

.feature-item-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 12px;
}

.feature-item-desc {
    font-size: 16px;
    line-height: 1.5;
}

.steps-list {
    counter-reset: step;
    max-width: 860px;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.steps-list li {
    position: relative;
    font-size: 18px;
    line-height: 1.5;
    padding-left: 56px;
    margin-bottom: 22px;
}

.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #009fe3;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 36px;
}

.page-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 50px;
    border-radius: 8px;
    background-color: #009fe3;
    color: #fff;
}

.page-cta-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.page-cta-desc {
    font-size: 18px;
    line-height: 1.5;
}

.page-cta .btn {
    box-shadow: none;
}

.page-footer {
    background-color: var(--dark);
    color: #fff;
    padding: 50px 0;
}

.page-footer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 14px;
}

.page-footer-text {
    font-size: 16px;
    line-height: 1.6;
}

.page-footer-text a {
    color: #fff;
}

.page-footer-copy {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 30px;
}

/* Прайс дополнительных услуг (автосервис) */

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.price-category {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 30px 0px rgba(25, 25, 25, 0.1);
    overflow: hidden;
    break-inside: avoid;
}

.price-category-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    padding: 22px 28px;
    background-color: #009fe3;
    color: #fff;
}

.price-list {
    padding: 10px 28px 18px;
}

.price-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed #cfe3f2;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item-name {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--dark);
}

.price-item-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #b9d4e8;
    transform: translateY(-4px);
}

.price-item-value {
    font-size: 16px;
    font-weight: 800;
    color: #009fe3;
    white-space: nowrap;
}

.price-note {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.5;
    color: #6b7c8a;
}

/* Статьи */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    padding: 36px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0px 0px 30px 0px rgba(25, 25, 25, 0.1);
    color: var(--dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 0px 40px 0px rgba(0, 159, 227, 0.25);
}

.article-card-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #009fe3;
    background-color: #ebf6ff;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 18px;
}

.article-card-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-card-desc {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: #55677a;
    margin-bottom: 24px;
    flex-grow: 1;
}

.article-card-link {
    font-size: 16px;
    font-weight: bold;
    color: #009fe3;
}

/* Объекты аренды */

.objects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.object-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0px 0px 30px 0px rgba(25, 25, 25, 0.1);
}

.object-card-area {
    display: inline-block;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background-color: #009fe3;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 16px;
}

.object-card-title {
    font-size: 21px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 10px;
}

.object-card-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #55677a;
    margin-bottom: 22px;
}

.object-props {
    border-top: 1px solid #e4eef6;
}

.object-prop {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e4eef6;
    font-size: 15px;
    line-height: 1.4;
}

.object-prop-key {
    color: #7b8b99;
}

.object-prop-val {
    font-weight: 700;
    text-align: right;
    color: var(--dark);
}

/* Ключевые факты под hero (аренда) */

.facts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.fact-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    background-color: #ebf6ff;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.fact-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #009fe3;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Текст статьи */

.article-body {
    max-width: 820px;
}

.article-body p {
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 40px 0 18px;
    color: var(--dark);
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article-body li {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-body a {
    color: #009fe3;
    text-decoration: underline;
}

.article-facts {
    background-color: #ebf6ff;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 28px 0;
}

.article-facts-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.article-facts ul {
    margin-bottom: 0;
}

@media only screen and (max-width: 1024px) {
    .objects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .price-grid,
    .articles-grid,
    .objects-grid {
        grid-template-columns: 1fr;
    }

    .price-category-title {
        font-size: 18px;
        padding: 18px 20px;
    }

    .price-list {
        padding: 6px 20px 14px;
    }

    .price-item-name,
    .price-item-value {
        font-size: 15px;
    }

    .article-card {
        padding: 26px 22px;
    }

    .article-card-title {
        font-size: 20px;
    }

    .object-card {
        padding: 26px 22px;
    }

    .object-prop {
        font-size: 14px;
    }

    .fact-pill {
        font-size: 14px;
        padding: 10px 14px;
    }

    .article-body p,
    .article-body li {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 22px;
    }
}

@media only screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    #services {
        padding: 60px 0 20px;
    }

    .services-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-card-title {
        font-size: 22px;
    }

    .page-hero {
        padding: 20px 0 50px;
    }

    .page-hero-title {
        font-size: 30px;
    }

    .page-hero-desc,
    .page-text {
        font-size: 16px;
    }

    .page-section {
        padding-bottom: 60px;
    }

    .page-cta {
        padding: 32px 24px;
    }

    .page-cta-title {
        font-size: 24px;
    }

    .page-cta-desc {
        font-size: 16px;
    }
}

#whywe {
    background-color: #f4f8fb;
    padding: 72px 0 64px;
}

#whywe .wrapper::before {
    content: none;
    display: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.why-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 24px 26px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 12px 32px rgba(25, 45, 70, 0.07);
}

.why-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 16px;
    background-color: #e7f6fd;
    flex-shrink: 0;
}

.why-card-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.why-card-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

.why-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #5c6d7e;
}

@media only screen and (max-width: 1100px) {
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 640px) {
    #whywe {
        padding: 32px 0 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
    }

    .why-card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 0;
        border-radius: 12px;
    }

    .why-card-icon {
        width: 56px;
        height: 56px;
    }

    .why-card-icon img {
        width: 40px;
        height: 40px;
    }

    .why-card-title {
        font-size: 17px;
    }

    .why-card-text {
        font-size: 14px;
    }
}

#main {
    overflow: visible;
}

.has-submenu {
    position: relative;
}

.submenu-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    border-width: 5px 4px 0;
    border-style: solid;
    border-color: currentColor transparent transparent;
    vertical-align: 2px;
}

.has-submenu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    z-index: 30;
    min-width: 230px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(20, 40, 70, 0.14);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu {
    display: flex;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

.submenu a:hover,
.submenu a.active {
    color: #009fe3;
    background: #f3f9fd;
}

.menu-booking {
    display: flex;
    align-items: center;
}

li.top-menu-elem a.menu-booking-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background-image: linear-gradient(180deg, #01b523 0%, #029a32 100%);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

li.top-menu-elem a.menu-booking-link:hover {
    color: #fff;
    filter: brightness(1.06);
}

@media only screen and (max-width: 768px) {
    .has-submenu::before {
        content: none;
    }

    .mobile-menu-block .has-submenu:hover > .submenu {
        display: none;
    }

    .mobile-menu-block .has-submenu.open > .submenu {
        display: flex;
    }

    .mobile-menu-block .submenu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        padding: 4px 0 4px 12px;
        background: transparent;
        box-shadow: none;
    }

    .mobile-menu-block .submenu a {
        padding: 8px 0;
        font-size: 18px;
    }

    .mobile-menu-block .menu-booking-link {
        font-size: 16px;
    }
}

@media only screen and (min-width: 769px) {
    header .header-menu.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 80;
        padding: 14px 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 28px rgba(20, 40, 70, 0.1);
        backdrop-filter: blur(10px);
        animation: navIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    header .header-menu.is-fixed.is-hiding {
        animation: navOut 0.32s cubic-bezier(0.4, 0, 1, 1) both;
    }
}

@keyframes navIn {
    from {
        transform: translateY(-110%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes navOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-110%);
        opacity: 0;
    }
}

a.btn.btn-docs {
    background-image: linear-gradient(180deg, #1ab4f0 0%, #009fe3 100%);
    box-shadow: 0 30px 90px 0 rgba(0, 159, 227, 0.35);
}

.vk-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    background: #0077ff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 119, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.vk-widget:hover {
    color: #fff;
    background: #0066db;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 119, 255, 0.42);
}

.vk-widget-icon {
    display: flex;
    width: 22px;
    height: 22px;
}

.vk-widget-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media only screen and (max-width: 768px) {
    .vk-widget {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        padding: 11px 14px 11px 12px;
        font-size: 14px;
    }
}
