/*
Theme Name: Старт Курьера
Description: Адаптивная тема для сайта о подключении курьеров доставки еды.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Author: SKYTEK
Text Domain: start-kuriera
*/

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("assets/golos-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("assets/golos-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --paper: #fff9ec;
    --white: #fffefa;
    --ink: #25221a;
    --muted: #5f5543;
    --line: #ecdfb8;
    --charcoal: #26241e;
    --yellow: #ffdb1c;
    --yellow-hover: #f3c900;
    --radius: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #875c00; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.032em; }
ul, ol { margin: 0; }
section[id] { scroll-margin-top: 24px; }

.shell { width: min(100% - 72px, 1232px); margin-inline: auto; }
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    transform: translateY(-160%);
    z-index: 99999;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--yellow);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-layout {
    min-height: 77px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.033em;
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark { width: 38px; height: 38px; }
.icon-arrow {
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}
.icon-arrow::before, .icon-arrow::after { content: ""; position: absolute; }
.icon-arrow::before {
    top: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}
.icon-arrow::after {
    left: 2px;
    bottom: 1px;
    width: 15px;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: left center;
}
.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { gap: clamp(18px, 3vw, 40px); }
.header-actions { gap: 10px; }
.site-nav a { font-size: 15px; font-weight: 720; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mobile-menu { display: none; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 57px;
    padding: 12px 23px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 720;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}
.button-primary { color: var(--ink); background: var(--yellow); }
.button-primary:hover { background: var(--yellow-hover); }
.button-outline { border-color: #a39572; }
.button-outline:hover { color: var(--white); background: var(--ink); }
.button-small { min-height: 42px; padding: 9px 15px; font-size: 14px; gap: 9px; }

.hero { padding-block: 26px 73px; }
.hero-frame {
    position: relative;
    min-height: clamp(450px, 48vw, 565px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 33px;
    background: var(--yellow);
    color: var(--ink);
}
.hero-picture { position: absolute; inset: 0 0 0 41%; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 36%; }
.hero-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--yellow), rgba(255, 219, 28, .82) 11%, rgba(255, 219, 28, 0) 39%);
    pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; width: min(63%, 745px); padding: 45px clamp(28px, 4.5vw, 68px); }
.region {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #392f15;
    font-size: 13px;
    font-weight: 750;
}
.region span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--charcoal); }
.hero h1 { font-size: clamp(44px, 5.15vw, 74px); line-height: 1.04; letter-spacing: -.033em; font-weight: 740; text-wrap: balance; }
.hero h1 span { display: block; }
.hero-intro { max-width: 435px; margin-top: 22px; color: #3e331b; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 22px; margin-top: 27px; }
.hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--ink);
    font-weight: 750;
    text-underline-offset: 5px;
}
.hero-actions .button-primary, .final-call .button-primary { background: var(--charcoal); color: var(--white); }
.hero-actions .button-primary:hover, .final-call .button-primary:hover { background: #433917; }

.section { padding-bottom: 78px; }
.section-heading { max-width: 690px; }
.section-heading h2, .final-call h2 { font-size: clamp(32px, 4vw, 53px); font-weight: 740; letter-spacing: -.035em; text-wrap: balance; }
.section-heading > p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 780; text-underline-offset: 5px; }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 23px; }
.format-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.format-card img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: 50% 28%; border-radius: 25px 25px 0 0; }
.format-copy { position: relative; padding: 22px 24px 23px; flex: 1; }
.format-card h3 { padding-right: 43px; font-size: clamp(23px, 2.4vw, 31px); }
.format-card p { margin-top: 9px; max-width: 345px; color: var(--muted); font-size: 16px; }
.format-card a { display: flex; flex-direction: column; flex: 1; border-radius: inherit; text-decoration: none; }
.format-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.format-card:has(a:focus-visible) { outline: 3px solid #875c00; outline-offset: 3px; }
.format-arrow { position: absolute; top: 18px; right: 21px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fff1a8; }
.on-foot .format-arrow { background: #ffe582; }
.by-car .format-arrow { background: #f8eabd; }
.format-card a:hover .format-arrow { background: var(--yellow); }

.steps-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    gap: 35px clamp(32px, 6vw, 88px);
    align-items: start;
    padding: clamp(24px, 5.3vw, 70px);
    border-radius: 30px;
    border: 1px solid #efdf9d;
    background: #fff2bb;
}
.steps-panel .section-heading h2 { max-width: 510px; }
.steps-panel .text-link, .cities .text-link { margin-top: 19px; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { display: flex; gap: 14px; counter-increment: step; padding-block: 15px; border-bottom: 1px solid #eedc8c; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--charcoal);
    color: #fff;
    font-weight: 800;
}
.steps h3 { font-size: 21px; letter-spacing: -.035em; }
.steps p { margin-top: 6px; color: var(--muted); }

.cities {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .75fr);
    gap: 26px 55px;
    padding: clamp(24px, 5.3vw, 70px);
    background: #ffed95;
    border-radius: 30px;
}
.city-card { display: grid; gap: 11px; padding: 22px; border-radius: 21px; background: var(--white); }
.city-card label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.city-card select {
    width: 100%;
    min-height: 49px;
    padding: 9px 12px;
    border: 1px solid #ab9b68;
    border-radius: 10px;
    font: inherit;
    background: var(--white);
    color: var(--ink);
}
.city-card .button { min-height: 51px; }
.city-card > p { color: var(--muted); font-size: 13px; }
.city-links { display: flex; flex-wrap: wrap; gap: 7px; }
.city-links:not(:empty) { margin-top: 15px; }
.city-links a { padding: 5px 11px; border: 1px solid #dbc452; border-radius: 99px; font-size: 13px; font-weight: 700; text-decoration: none; }
.city-links a:hover { background: var(--white); }

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}
.topic-grid a {
    display: block;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    text-decoration: none;
}
.topic-grid a:hover { border-color: #ab9b68; }
.topic-grid a > strong { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 5px; font-size: 17px; }
.topic-grid a > span { color: var(--muted); font-size: 14px; }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 25px 54px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    list-style: none;
    padding-block: 16px;
    font-size: 18px;
    font-weight: 775;
    line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 30px; text-align: center; font-size: 25px; font-weight: 600; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-bottom: 18px; color: var(--muted); }
.faq-list details p a { font-weight: 750; text-underline-offset: 3px; }

.final-section { margin-bottom: 54px; }
.final-call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(24px, 5vw, 61px);
    background: var(--yellow);
    color: var(--ink);
    border-radius: 30px;
}
.final-call p { margin-top: 8px; color: #54461c; font-size: 17px; }

.site-footer { padding-block: 29px 38px; border-top: 1px solid var(--line); background: var(--white); }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px 38px; }
.footer-layout p { max-width: 440px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.footer-layout nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; padding-top: 8px; font-weight: 700; font-size: 14px; }
.footer-layout nav a { text-underline-offset: 4px; }

.article-page { min-height: 55vh; padding-block: 37px 72px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-bottom: 23px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { text-underline-offset: 3px; }
.article-header { margin-bottom: 27px; }
.article-header h1, .article-page > h1, .post-entry h1 { max-width: 980px; font-size: clamp(37px, 5.3vw, 66px); font-weight: 740; }
.article-layout { display: grid; grid-template-columns: minmax(0, 750px) minmax(225px, 1fr); align-items: start; gap: clamp(22px, 4vw, 66px); }
.entry-content { overflow-wrap: anywhere; font-size: 17px; }
.entry-content > * + * { margin-top: 15px; }
.entry-content h2 { margin-top: 29px; font-size: clamp(25px, 3vw, 36px); }
.entry-content h3 { font-size: 23px; }
.entry-content a { font-weight: 730; text-underline-offset: 3px; }
.entry-content li + li { margin-top: 7px; }
.entry-content .lead { color: var(--muted); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.47; }
.related-guides { padding: 0 20px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.related-guides ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.related-guides h2 { margin: 20px 0 13px; font-size: 24px; }
.related-guides li + li { margin: 0; }
.related-guides a { display: inline-block; padding: 6px 11px; border-radius: 10px; background: #fff2bb; text-decoration: none; }
.related-guides a:hover { text-decoration: underline; }
.extra-content { margin-block: 0 46px; }
.post-entry + .post-entry { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-aside { padding: 25px; border: 1px solid #eadb9d; border-radius: var(--radius); background: #fff2bb; }
.article-aside h2 { font-size: 27px; }
.article-aside p { margin-block: 10px 16px; color: var(--muted); }

@media (max-width: 960px) {
    .shell { width: min(100% - 48px, 1232px); }
    .section { padding-bottom: 58px; }
    .hero { padding-bottom: 59px; }
    .site-nav { gap: 19px; }
    .format-copy { padding: 18px; }
    .format-arrow { top: 14px; right: 14px; }
}
@media (max-width: 760px) {
    .site-nav { display: none; }
    .header-layout { min-height: 65px; gap: 10px; }
    .mobile-menu { display: block; position: relative; }
    .mobile-menu summary {
        display: grid;
        width: 42px;
        height: 42px;
        list-style: none;
        place-items: center;
        border: 1px solid #a39572;
        border-radius: 10px;
        cursor: pointer;
    }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu summary span { width: 16px; height: 10px; border-block: 2px solid currentColor; }
    .mobile-menu nav {
        position: absolute;
        z-index: 4;
        top: calc(100% + 10px);
        right: 0;
        display: grid;
        min-width: 197px;
        padding: 12px;
        gap: 7px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 14px 35px rgba(37, 32, 14, .14);
    }
    .mobile-menu nav a:not(.button) { padding: 5px 8px; font-weight: 720; text-decoration: none; }
    .mobile-menu nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 720px) {
    .shell { width: min(100% - 32px, 1232px); }
    .brand { font-size: 18px; gap: 7px; }
    .brand-mark { width: 34px; height: 34px; }
    .hero { padding-block: 15px 49px; }
    .hero-frame { min-height: 0; flex-direction: column; align-items: stretch; border-radius: 25px; }
    .hero-copy { width: auto; padding: 29px 23px 24px; order: -1; }
    .hero h1 { max-width: 550px; font-size: clamp(35px, 8.6vw, 63px); }
    .hero h1 span { display: block; }
    .hero-intro { margin-top: 13px; }
    .hero-actions { margin-top: 19px; column-gap: 12px; }
    .hero-actions .button { padding-inline: 16px; min-height: 51px; }
    .hero-secondary { font-size: 15px; }
    .hero-picture { position: relative; inset: auto; aspect-ratio: 1.65; }
    .hero-picture img { object-position: 60% 31%; }
    .hero-picture::after { background: linear-gradient(180deg, rgba(255, 219, 28, .65), rgba(255, 219, 28, 0) 21%); }
    .steps-panel, .cities, .faq-section, .article-layout { grid-template-columns: 1fr; }
    .formats { grid-template-columns: 1fr; gap: 13px; }
    .format-card img { aspect-ratio: 1.72; }
    .format-copy { min-height: 114px; }
    .format-arrow { top: 16px; }
    .steps-panel { gap: 24px; }
    .article-aside { max-width: 420px; }
    .footer-layout { flex-direction: column; }
}
@media (max-width: 460px) {
    .header-actions > .button { display: none; }
    .region { margin-bottom: 13px; font-size: 12px; }
    .final-call { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
