/*
Theme Name: Pidryad Reference
Description: Reference theme for equipment-rental sites: the first approved design that generated themes follow.
Version: 0.3.0
Requires at least: 6.6
Text Domain: pidryad-reference
*/

:root {
    --pr-orange: #d98a12;
    --pr-yellow: #fde02a;
    --pr-graphite: #3a3b3d;
    --pr-graphite-dark: #2b2c2e;
    --pr-ink: #3c3c3c;
    --pr-muted: #f3f3f3;
    --pr-line: #e4e4e4;
    --pr-footer: #232323;
    --pr-container: 1110px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pr-ink);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--pr-yellow);
    outline-offset: 2px;
}

.pr-container {
    width: 100%;
    max-width: var(--pr-container);
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar: hours, phone, city and language. */
.pr-topbar {
    background: var(--pr-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.pidryad-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
}

.pidryad-topbar__group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pidryad-topbar__phone {
    font-weight: 700;
    font-size: 13px;
}

/* City and language switchers: a details element with a dropdown list. */
.pidryad-switcher {
    position: relative;
}

.pidryad-switcher__current {
    cursor: pointer;
    list-style: none;
}

.pidryad-switcher__current::-webkit-details-marker {
    display: none;
}

.pidryad-switcher__current::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-bottom-width: 0;
    vertical-align: middle;
}

.pidryad-switcher__current:focus-visible {
    outline: 2px solid var(--pr-yellow);
    outline-offset: 2px;
}

.pidryad-switcher__list {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 140px;
    max-height: 320px;
    margin: 6px 0 0;
    padding: 6px 0;
    overflow-y: auto;
    list-style: none;
    color: var(--pr-ink);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.pidryad-switcher--lang .pidryad-switcher__list {
    right: 0;
    left: auto;
    min-width: 80px;
}

.pidryad-switcher__list a {
    display: block;
    padding: 6px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.pidryad-switcher__list a:hover,
.pidryad-switcher__list a[aria-current] {
    background: var(--pr-yellow);
}

/* Main navigation with the slanted catalog button. */
.pr-nav {
    background: var(--pr-graphite);
    border-bottom: 4px solid var(--pr-yellow);
}

.pidryad-main-nav {
    display: flex;
    align-items: stretch;
    min-height: 40px;
}

.pidryad-main-nav__logo {
    display: flex;
    align-items: center;
    margin-right: 24px;
}

.pidryad-main-nav__logo img {
    display: block;
    width: auto;
    max-height: 40px;
}

.pidryad-main-nav__catalog {
    position: relative;
    display: flex;
    align-items: center;
    width: 267px;
    padding: 0 32px;
    color: var(--pr-graphite-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 0;
}

.pidryad-main-nav__catalog::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pr-yellow);
    transform: skewX(-12deg);
    z-index: -1;
}

.pidryad-main-nav__menu {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0 0 0 24px;
    list-style: none;
}

.pidryad-main-nav__menu a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.pidryad-main-nav__menu a:hover,
.pidryad-main-nav__menu a[aria-current] {
    color: var(--pr-yellow);
}

/* Hero: category list beside the banner. */
.pr-hero {
    padding-bottom: 32px;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%) 0 0 / 120px 120px,
        linear-gradient(225deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%) 0 0 / 120px 120px,
        #fafafa;
}

.pr-hero .pr-container {
    display: grid;
    grid-template-columns: 267px 1fr;
    gap: 30px;
}

.pidryad-category-list {
    margin: 0;
    padding: 20px 26px 30px;
    list-style: none;
    background: var(--pr-graphite);
}

.pidryad-category-list li a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 6px 0;
    color: #fff;
    font-size: 15px;
}

.pidryad-category-list li a::before {
    content: '';
    width: 14px;
    height: 2px;
    background: var(--pr-orange);
}

.pidryad-category-list li a:hover {
    color: var(--pr-yellow);
}

.pr-hero .pidryad-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    margin-top: 14px;
    padding: 40px 72px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(20, 22, 26, 0.85), rgba(20, 22, 26, 0.35)),
        repeating-linear-gradient(-45deg, #5b5f66 0 18px, #50545a 18px 36px);
}

.pr-hero .pidryad-hero__title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.pr-hero .pidryad-hero__subtitle {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

/* Services: equipment cards with slanted price tags. */
.pr-section {
    padding: 56px 0;
}

.pidryad-price-cards__title,
.pr-section__title {
    margin: 0 auto 44px;
    width: fit-content;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pr-orange);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.pidryad-price-cards__grid,
.pidryad-category-equipment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 30px;
}

.pidryad-price-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pr-line);
    background: #fff;
    transition: box-shadow 0.2s;
}

.pidryad-price-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.pidryad-photo {
    display: flex;
    align-items: flex-end;
    padding: 10px 12px;
    aspect-ratio: 348 / 228;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    background: repeating-linear-gradient(-45deg, #9aa0a6 0 14px, #8e949a 14px 28px);
}

img.pidryad-photo {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    background: none;
    object-fit: cover;
}

.pidryad-price-card__footer {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 80px;
}

.pidryad-price-card__name {
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
}

.pidryad-price {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 0 16px 0 28px;
    color: var(--pr-ink);
    font-size: 13px;
    line-height: 1.3;
    z-index: 0;
}

.pidryad-price::before {
    content: '';
    position: absolute;
    inset: 0 0 0 10px;
    background: var(--pr-yellow);
    transform: skewX(-14deg);
    transform-origin: bottom left;
    z-index: -1;
}

.pidryad-price strong {
    font-size: 19px;
    font-weight: 700;
}

.pidryad-price-cards__more {
    display: block;
    width: fit-content;
    margin: 48px auto 0;
    padding: 10px 28px;
    border: 2px solid var(--pr-yellow);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.pidryad-price-cards__more:hover {
    background: var(--pr-yellow);
}

/* Orange strip with the main promise. */
.pr-strip {
    padding: 92px 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(217, 138, 18, 0.95) 30%, rgba(217, 138, 18, 0.6)),
        repeating-linear-gradient(-45deg, #b06d0c 0 22px, #a5650b 22px 44px);
}

.pr-strip .pidryad-promo__text {
    margin: 0;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
}

/* About text with advantages and the call. */
.pr-about {
    padding: 64px 0 96px;
    background: var(--pr-muted);
    font-size: 14px;
}

.pr-about .pr-container > * {
    max-width: 80ch;
}

.pidryad-advantages__title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
}

.pidryad-advantages__list {
    margin: 0 0 20px;
    padding-left: 20px;
}

.pidryad-advantages__list li {
    margin-bottom: 4px;
}

.pidryad-call-cta {
    margin-top: 28px;
    font-weight: 600;
}

.pidryad-call-cta a {
    color: var(--pr-orange);
    white-space: nowrap;
}

/* Footer. */
.pidryad-footer {
    color: #fff;
    background:
        linear-gradient(rgba(25, 25, 25, 0.88), rgba(25, 25, 25, 0.88)),
        repeating-linear-gradient(-45deg, #4a4033 0 22px, #3f372c 22px 44px);
}

.pidryad-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    gap: 30px;
    width: 100%;
    max-width: var(--pr-container);
    margin: 0 auto;
    padding: 40px 16px 48px;
}

.pidryad-footer__brand {
    align-self: center;
    font-size: 13px;
}

.pidryad-footer__brand img {
    display: block;
    width: auto;
    max-height: 48px;
    margin-bottom: 12px;
}

.pidryad-footer__brand strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    color: var(--pr-yellow);
}

.pidryad-footer h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
}

.pidryad-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.pidryad-footer li {
    margin-bottom: 4px;
}

.pidryad-footer a:hover {
    color: var(--pr-yellow);
}

.pidryad-footer__bottom {
    background: #111;
    font-size: 13px;
}

.pidryad-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: var(--pr-container);
    margin: 0 auto;
    padding: 12px 16px;
}

/* Inner pages: breadcrumbs and a plain page title. */
.pr-page-head {
    padding: 20px 0 32px;
    background: #fafafa;
}

.pidryad-breadcrumbs {
    margin-bottom: 20px;
    font-size: 13px;
}

.pidryad-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pidryad-breadcrumbs__list li + li::before {
    content: '\203A';
    margin-right: 6px;
    color: var(--pr-orange);
}

.pidryad-breadcrumbs__list a:hover {
    color: var(--pr-orange);
}

.pidryad-breadcrumbs__list [aria-current] {
    font-weight: 600;
}

.pr-page-head .pidryad-hero {
    text-align: center;
}

.pr-page-head .pidryad-hero__title {
    margin: 0 auto 8px;
    width: fit-content;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pr-orange);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.pr-page-head .pidryad-hero__subtitle {
    margin: 12px 0 0;
    font-size: 16px;
}

.pr-page-body .pr-container > * + * {
    margin-top: 40px;
}

.pr-page-body .pidryad-content {
    max-width: 80ch;
    font-size: 14px;
}

.pr-page-body .pidryad-content > :first-child {
    margin-top: 0;
}

/* Contacts. */
.pidryad-contacts {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 14px 24px;
    margin-left: 0;
    padding: 24px 28px;
    border: 1px solid var(--pr-line);
    border-left: 4px solid var(--pr-yellow);
}

.pidryad-contacts dt {
    margin: 0;
    font-weight: 700;
}

.pidryad-contacts dd {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
}

.pidryad-contacts a {
    color: var(--pr-orange);
    font-weight: 600;
}

/* Equipment card: photo left, specs, slanted price tag and the call button. */
.pidryad-equipment-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px;
    align-items: start;
}

.pidryad-equipment-card__media .pidryad-photo {
    width: 100%;
    min-height: 260px;
    aspect-ratio: 4 / 3;
}

.pidryad-equipment-card__specs {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--pr-line);
}

.pidryad-equipment-card__spec {
    display: flex;
    gap: 8px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--pr-line);
}

.pidryad-equipment-card__spec-name {
    min-width: 12em;
    color: #777;
}

.pidryad-equipment-card__spec-value {
    font-weight: 600;
}

.pidryad-equipment-card__price {
    display: flex;
    width: fit-content;
    align-items: center;
    min-height: 64px;
    margin: 0 0 20px 10px;
    padding: 0 28px 0 40px;
    flex-direction: row;
    gap: 8px;
    font-size: 15px;
}

.pidryad-equipment-card__price strong {
    font-size: 24px;
}

.pidryad-equipment-card__call {
    display: block;
    width: fit-content;
    padding: 12px 36px;
    border-radius: 12px;
    background: var(--pr-yellow);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.pidryad-equipment-card__call:hover {
    background: var(--pr-orange);
    color: #fff;
}

/* Not found. */
.pidryad-not-found {
    padding: 48px 0 24px;
    text-align: center;
}

.pidryad-not-found__title {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 700;
}

.pidryad-not-found__home {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 28px;
    border: 2px solid var(--pr-yellow);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.pidryad-not-found__home:hover {
    background: var(--pr-yellow);
}

/* Tablet and phone. */
@media (max-width: 960px) {
    .pr-hero .pr-container {
        grid-template-columns: 1fr;
    }

    .pidryad-category-list {
        display: none;
    }

    .pidryad-price-cards__grid,
    .pidryad-category-equipment {
        grid-template-columns: repeat(2, 1fr);
    }

    .pidryad-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .pidryad-equipment-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pidryad-topbar__hours,
    .pidryad-main-nav__menu {
        display: none;
    }

    .pidryad-main-nav__catalog {
        width: auto;
    }

    .pr-hero .pidryad-hero {
        min-height: 220px;
        padding: 28px 24px;
    }

    .pr-hero .pidryad-hero__title {
        font-size: 22px;
    }

    .pr-hero .pidryad-hero__subtitle {
        font-size: 16px;
    }

    .pidryad-price-cards__grid,
    .pidryad-category-equipment {
        grid-template-columns: 1fr;
    }

    .pr-strip {
        padding: 56px 0;
    }

    .pr-strip .pidryad-promo__text {
        font-size: 22px;
    }

    .pidryad-footer__grid {
        grid-template-columns: 1fr;
    }

    .pidryad-footer__bottom-inner {
        flex-direction: column;
        gap: 4px;
    }

    .pidryad-contacts {
        grid-template-columns: 1fr;
    }

    .pidryad-contacts dt {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pidryad-price-card {
        transition: none;
    }
}
