/*
Theme Name: Отпуск за рулём
Theme URI: https://otpuskzarulem.ru
Author: Timur Smirnov / Codex
Author URI: https://otpuskzarulem.ru
Description: Custom WordPress 7.0-ready theme for an author-led road trip route library with route catalog, digital guides, B2B services and Telegram funnel links.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otpusk-za-rulem
Tags: blog, e-commerce, custom-logo, featured-images, wide-blocks, block-styles
*/

:root {
    --ozr-graphite: #1E2A35;
    --ozr-cream: #F4EFE7;
    --ozr-terracotta: #B86B4B;
    --ozr-khaki: #5A6651;
    --ozr-warm-gray: #8C8074;
    --ozr-paper: #fbf7ef;
    --ozr-line: rgba(30, 42, 53, 0.16);
    --ozr-shadow: 0 22px 70px rgba(30, 42, 53, 0.12);
    --ozr-radius: 8px;
    --ozr-container: min(1180px, calc(100vw - 40px));
    --ozr-font-heading: "Lora", Georgia, serif;
    --ozr-font-body: "Inter", Arial, sans-serif;
    --ozr-font-accent: "Caveat", cursive;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ozr-cream);
    color: var(--ozr-graphite);
    font-family: var(--ozr-font-body);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ozr-terracotta);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--ozr-graphite);
}

h1,
h2,
h3,
h4,
.ozr-heading {
    margin: 0 0 0.55em;
    color: var(--ozr-graphite);
    font-family: var(--ozr-font-heading);
    font-weight: 600;
    line-height: 1.14;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 {
    font-size: clamp(1.22rem, 2vw, 1.5rem);
    font-weight: 500;
}

p {
    margin: 0 0 1rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ozr-container {
    width: var(--ozr-container);
    margin-inline: auto;
}

.ozr-section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.ozr-section--paper {
    background: var(--ozr-paper);
}

.ozr-section--dark {
    background: var(--ozr-graphite);
    color: var(--ozr-cream);
}

.ozr-section--dark h1,
.ozr-section--dark h2,
.ozr-section--dark h3 {
    color: var(--ozr-cream);
}

.ozr-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 34px;
    text-align: center;
}

.ozr-section-title::before,
.ozr-section-title::after {
    content: "";
    width: min(150px, 18vw);
    height: 1px;
    background: var(--ozr-line);
}

.ozr-muted,
.ozr-meta,
.ozr-card-meta {
    color: var(--ozr-warm-gray);
    font-size: 0.86rem;
}

.ozr-accent-note {
    color: var(--ozr-terracotta);
    font-family: var(--ozr-font-accent);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1;
}

.ozr-button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--ozr-terracotta);
    border-radius: 4px;
    background: var(--ozr-terracotta);
    color: #fff;
    font-family: var(--ozr-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 15px 24px;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ozr-button:hover,
.button:hover,
.wp-element-button:hover {
    border-color: #9f563c;
    background: #9f563c;
    color: #fff;
    transform: translateY(-1px);
}

.ozr-button--ghost {
    border-color: currentColor;
    background: transparent;
    color: inherit;
}

.ozr-button--ghost:hover {
    border-color: var(--ozr-terracotta);
    background: var(--ozr-terracotta);
    color: #fff;
}

.ozr-button--small {
    min-height: 42px;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.88rem;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(30, 42, 53, 0.96);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.site-header__inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.site-branding img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.site-branding span {
    display: block;
    max-width: 150px;
    color: #fff;
    font-family: var(--ozr-font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.12;
}

.site-branding small {
    display: block;
    margin-top: 3px;
    color: rgba(244, 239, 231, 0.72);
    font-family: var(--ozr-font-body);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu a {
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-menu a:hover {
    color: var(--ozr-terracotta);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(244, 239, 231, 0.35);
    border-radius: 4px;
    background: transparent;
    color: #fff;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    content: "";
}

.ozr-hero {
    position: relative;
    display: grid;
    min-height: min(760px, calc(100vh - 76px));
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(30, 42, 53, 0.90) 0%, rgba(30, 42, 53, 0.66) 45%, rgba(30, 42, 53, 0.25) 100%),
        linear-gradient(180deg, rgba(30, 42, 53, 0.16), rgba(30, 42, 53, 0.52)),
        url("assets/images/hero-road.jpg"),
        linear-gradient(135deg, #1E2A35 0%, #314239 48%, #7A735D 100%);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.ozr-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background:
        linear-gradient(170deg, transparent 20%, rgba(244, 239, 231, 0.08) 21%, transparent 23%),
        linear-gradient(150deg, transparent 28%, rgba(255, 255, 255, 0.16) 29%, transparent 30%);
    content: "";
    pointer-events: none;
}

.ozr-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 72px 0 96px;
}

.ozr-hero h1 {
    color: #fff;
}

.ozr-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.ozr-hero__actions,
.ozr-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 22px;
}

.ozr-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.ozr-step {
    text-align: center;
}

.ozr-step__icon,
.ozr-product-card__icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 14px;
    border: 1px solid rgba(90, 102, 81, 0.45);
    color: var(--ozr-khaki);
}

.ozr-step__icon::before,
.ozr-product-card__icon::before {
    width: 28px;
    height: 28px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 50% 6px;
    content: "";
    transform: rotate(-18deg);
}

.ozr-step strong {
    display: block;
    color: var(--ozr-terracotta);
    font-family: var(--ozr-font-heading);
    font-size: 1.05rem;
}

.ozr-route-grid,
.ozr-product-grid,
.ozr-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ozr-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ozr-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ozr-route-card,
.ozr-product-card,
.ozr-panel {
    border: 1px solid var(--ozr-line);
    border-radius: var(--ozr-radius);
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.ozr-route-card {
    overflow: hidden;
}

.ozr-route-card__media {
    display: grid;
    min-height: 182px;
    align-items: end;
    padding: 16px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(30, 42, 53, 0.72) 100%),
        linear-gradient(135deg, rgba(90, 102, 81, 0.95), rgba(184, 107, 75, 0.45)),
        var(--ozr-khaki);
    color: #fff;
    text-decoration: none;
}

.ozr-route-card__media span {
    max-width: max-content;
    border-bottom: 2px solid var(--ozr-terracotta);
    font-size: 0.82rem;
    font-weight: 700;
}

.ozr-route-card__body,
.ozr-product-card {
    padding: 18px;
}

.ozr-route-card h3 a {
    color: var(--ozr-graphite);
    text-decoration: none;
}

.ozr-route-card p,
.ozr-product-card p {
    font-size: 0.93rem;
    line-height: 1.5;
}

.ozr-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.ozr-card-bottom strong,
.ozr-product-card strong,
.ozr-price {
    color: var(--ozr-terracotta);
    font-family: var(--ozr-font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

.ozr-product-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.ozr-product-card h3 {
    font-family: var(--ozr-font-body);
    font-size: 1rem;
    font-weight: 800;
}

.ozr-product-card p {
    flex: 1;
}

.ozr-autoguide {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.ozr-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ozr-check-list li {
    position: relative;
    padding: 9px 0 9px 32px;
    border-bottom: 1px solid rgba(30, 42, 53, 0.10);
}

.ozr-check-list li::before {
    position: absolute;
    top: 14px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--ozr-khaki);
    border-radius: 50%;
    content: "";
}

.ozr-mockup {
    position: relative;
    min-height: 340px;
}

.ozr-mockup__screen {
    min-height: 290px;
    border: 10px solid var(--ozr-graphite);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(30, 42, 53, 0.92) 0 24%, transparent 24%),
        linear-gradient(180deg, #f8f2e8, #e6ddcf);
    box-shadow: var(--ozr-shadow);
}

.ozr-mockup__screen::after {
    display: block;
    width: 52%;
    height: 132px;
    margin: 64px 0 0 34%;
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(30, 42, 53, 0.10), rgba(30, 42, 53, 0.02)),
        linear-gradient(135deg, var(--ozr-khaki), var(--ozr-terracotta));
    content: "";
}

.ozr-mockup__phone,
.ozr-mockup__paper {
    position: absolute;
    bottom: 4px;
    border-radius: 8px;
    box-shadow: var(--ozr-shadow);
}

.ozr-mockup__phone {
    left: 2%;
    width: 96px;
    height: 178px;
    border: 8px solid var(--ozr-graphite);
    background: linear-gradient(140deg, var(--ozr-khaki), #d9cfbf);
}

.ozr-mockup__paper {
    right: 0;
    width: 142px;
    height: 194px;
    background: #fff;
    transform: rotate(7deg);
}

.ozr-mockup__paper::before {
    display: block;
    width: 70%;
    height: 8px;
    margin: 22px auto 0;
    background: rgba(30, 42, 53, 0.22);
    box-shadow: 0 28px 0 rgba(30, 42, 53, 0.16), 0 56px 0 rgba(30, 42, 53, 0.12), 0 84px 0 rgba(184, 107, 75, 0.28);
    content: "";
}

.ozr-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: center;
    border: 1px solid var(--ozr-line);
    padding: clamp(28px, 5vw, 56px);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0)),
        rgba(255, 255, 255, 0.26);
}

.site-footer {
    background: var(--ozr-graphite);
    color: rgba(244, 239, 231, 0.76);
    padding: 52px 0 28px;
}

.site-footer a {
    color: rgba(244, 239, 231, 0.86);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ozr-terracotta);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 34px;
}

.site-footer h3 {
    color: #fff;
    font-family: var(--ozr-font-body);
    font-size: 1rem;
    font-weight: 800;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 0 0 9px;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(244, 239, 231, 0.18);
    font-size: 0.85rem;
}

.ozr-page-hero {
    padding: clamp(70px, 10vw, 124px) 0 clamp(48px, 7vw, 78px);
    background:
        linear-gradient(135deg, rgba(30, 42, 53, 0.97), rgba(30, 42, 53, 0.82)),
        var(--ozr-graphite);
    color: #fff;
}

.ozr-page-hero h1,
.ozr-page-hero h2 {
    color: #fff;
}

.ozr-page-hero p {
    max-width: 760px;
    color: rgba(244, 239, 231, 0.82);
}

.ozr-route-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: start;
}

.ozr-sidebar-card {
    position: sticky;
    top: 96px;
    border: 1px solid var(--ozr-line);
    border-radius: var(--ozr-radius);
    padding: 24px;
    background: var(--ozr-paper);
}

.ozr-pricing-list {
    display: grid;
    gap: 12px;
}

.ozr-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--ozr-line);
    padding: 12px 0;
}

.entry-content > * {
    max-width: 820px;
}

.entry-content > .alignwide {
    max-width: var(--ozr-container);
}

.entry-content > .alignfull {
    max-width: none;
}

@media (max-width: 1080px) {
    .site-header__actions .ozr-button {
        display: none;
    }

    .ozr-route-grid,
    .ozr-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ozr-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu-wrap {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        background: var(--ozr-graphite);
        padding: 20px;
    }

    .site-header.is-open .primary-menu-wrap {
        display: block;
    }

    .primary-menu {
        display: grid;
        gap: 16px;
    }

    .ozr-hero {
        min-height: auto;
    }

    .ozr-hero__content {
        padding: 58px 0 72px;
    }

    .ozr-section-title {
        justify-content: flex-start;
        text-align: left;
    }

    .ozr-section-title::before,
    .ozr-section-title::after {
        display: none;
    }

    .ozr-steps,
    .ozr-route-grid,
    .ozr-product-grid,
    .ozr-feature-grid,
    .ozr-autoguide,
    .ozr-final-cta,
    .ozr-route-single-grid,
    .site-footer__grid,
    .site-footer__bottom {
        grid-template-columns: 1fr;
    }

    .ozr-steps {
        text-align: left;
    }

    .ozr-step {
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 14px;
        text-align: left;
    }

    .ozr-step__icon {
        grid-row: span 3;
    }

    .ozr-product-card {
        min-height: 0;
    }

    .ozr-mockup__paper {
        display: none;
    }

    .ozr-sidebar-card {
        position: static;
    }

    .site-footer__bottom {
        display: grid;
    }
}
