/*
Theme Name: Газовый ремонт
Description: Блочная тема для сайта ремонта газового оборудования в Новочеркасске.
Version: 1.3.2
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: gazremont161
*/

:root {
    --gr-ink: #111d2a;
    --gr-navy: #101c29;
    --gr-night: #0b141f;
    --gr-muted: #4e5c68;
    --gr-paper: #f5f5f1;
    --gr-white: #fff;
    --gr-line: #dce1e2;
    --gr-orange: #ffc078;
    --gr-orange-dark: #8b4611;
    --gr-width: 75rem;
    --gr-gutter: clamp(1rem, 4vw, 3rem);
    --gr-header-height: 5rem;
    --gr-header-top: var(--wp-admin--admin-bar--height, 0px);
}

.gr-landing, .gr-content {
    margin: 0;
}

.gr-landing :where(h1, h2, h3, p, figure, ul) {
    margin-block: 0;
}

.gr-landing :where(h2, h3) {
    text-wrap: balance;
}

.gr-landing :where(main, section, a, summary, button) {
    scroll-margin-block-start: calc(var(--gr-header-height) + var(--gr-header-top) + .85rem);
}

.gr-landing a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.gr-landing .gr-skip {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.gr-landing .gr-skip:focus {
    z-index: 5;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: .65rem .9rem;
    clip-path: none;
    background: var(--gr-white);
    color: var(--gr-ink);
}
.gr-shell {
    width: min(var(--gr-width), calc(100% - 2 * var(--gr-gutter)));
    margin-inline: auto;
}

.gr-header, .gr-hero, .gr-contact, .gr-footer {
    color: var(--gr-white);
    background-color: var(--gr-navy);
}

.gr-header {
    position: sticky;
    top: var(--gr-header-top);
    z-index: 20;
    border-bottom: 1px solid #ffffff22;
}

.gr-header-inner {
    min-height: 4.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem clamp(1rem, 2vw, 2rem);
}

.gr-landing .gr-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.gr-brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    background: var(--gr-orange);
}

.gr-brand-mark::before {
    content: "";
    width: 1.15rem;
    height: 1.15rem;
    background: var(--gr-night);
    border-radius: 75% 12% 70% 70%;
    transform: rotate(-40deg) translate(.04rem, .04rem);
}

.gr-brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.gr-brand-city {
    display: block;
    color: #c3cdd5;
    font-size: .75rem;
    margin-top: .1rem;
}

.gr-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem clamp(.5rem, 1.2vw, 1.7rem);
}

.gr-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: .4rem;
    padding-inline: .5rem;
    font-size: .9rem;
    font-weight: 650;
    color: #e0e6ec;
    text-decoration: none;
}

.gr-nav a:hover, .gr-nav a:focus-visible {
    background: #ffffff14;
}

.gr-footer a:hover {
    text-decoration: underline;
    text-underline-offset: .3em;
}

.gr-landing .gr-phone, .gr-landing .gr-more, .gr-landing .gr-dialog-action {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: .75rem 1.2rem;
    border: 1px solid transparent;
    border-radius: .6rem;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.gr-landing .gr-phone, .gr-landing .gr-dialog-action {
    background: var(--gr-orange);
    color: var(--gr-night);
}

.gr-landing .gr-phone:hover, .gr-landing .gr-dialog-action:hover {
    background: #ffd3a0;
}

.gr-landing .gr-phone-outline, .gr-landing .gr-more {
    border-color: #627181;
    background: transparent;
    color: var(--gr-white);
}

.gr-landing .gr-phone-outline:hover, .gr-landing .gr-more:hover {
    background: #ffffff14;
}

.gr-header .gr-phone {
    min-height: 2.75rem;
    padding-inline: .8rem;
    font-size: .9rem;
}

.gr-hero {
    background-image: radial-gradient(ellipse at 88% 6%, #2b4355, transparent 54%),
        linear-gradient(140deg, #111f2d, #0b141e 77%);
    padding-block: clamp(2.7rem, 6vw, 5.1rem);
}

.gr-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.17fr) minmax(0, .93fr);
    align-items: center;
    gap: clamp(1.8rem, 5vw, 4.6rem);
}

.gr-landing .gr-eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--gr-orange-dark);
    font-size: .825rem;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.45;
    text-transform: uppercase;
}

.gr-eyebrow::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
}

.gr-hero .gr-eyebrow, .gr-contact .gr-eyebrow {
    color: var(--gr-orange);
}

.gr-landing h1 {
    margin-block: .9rem 1.3rem;
    max-width: 12ch;
    color: inherit;
    font-size: clamp(2.35rem, 5.25vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.063em;
    line-height: 1.015;
}

.gr-landing h1 strong {
    display: block;
    margin-top: .55rem;
    color: var(--gr-orange);
    font-size: .65em;
    font-weight: inherit;
    letter-spacing: -.045em;
}

.gr-hero .gr-lead {
    max-width: 31rem;
    color: #cdd7df;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.64;
}

.gr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-top: 1.6rem;
}

.gr-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem clamp(.45rem, 1.6vw, 1.15rem);
    border-top: 1px solid #ffffff29;
    margin-top: clamp(1.55rem, 4vw, 3rem);
    padding-top: 1.2rem;
}

.gr-proof p {
    color: #cdd7df;
    font-size: .9rem;
    line-height: 1.5;
}

.gr-proof strong {
    display: block;
    color: var(--gr-white);
    font-size: clamp(.95rem, 1.35vw, 1.1rem);
}

.gr-hero-media {
    position: relative;
    min-width: 0;
}

.gr-hero-media .wp-block-image {
    margin: 0;
    overflow: hidden;
    border: 1px solid #ffffff30;
    border-radius: 1.5rem;
    background: #263746;
}

.gr-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    object-position: center 62%;
}

.gr-section {
    padding-block: clamp(3.5rem, 7.25vw, 6.5rem);
}

.gr-landing h2 {
    color: inherit;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.08;
    margin-block: .6rem .85rem;
}

.gr-intro {
    max-width: 41rem;
    color: var(--gr-muted);
    font-size: 1rem;
}

.gr-services {
    background: var(--gr-paper);
}

.gr-diagnostic {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    gap: .45rem 1.15rem;
    margin-top: 1.6rem;
    padding: 1rem clamp(.9rem, 2vw, 1.5rem);
    background: #fff3e5;
    border: 1px solid #eed6b7;
    border-radius: .8rem;
}

.gr-diagnostic-price {
    color: var(--gr-orange-dark);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    white-space: nowrap;
}

.gr-diagnostic-note {
    color: var(--gr-muted);
}

.gr-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gr-price-card {
    padding: clamp(.9rem, 1.8vw, 1.5rem);
    background: var(--gr-white);
    border: 1px solid var(--gr-line);
    border-radius: 1rem;
}

.gr-price-card h3 {
    color: var(--gr-ink);
    margin-bottom: .75rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.gr-price-card .wp-block-table {
    overflow: visible;
}

.gr-price-card table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.gr-price-card .wp-block-table td {
    border: 0;
    border-top: 1px solid var(--gr-line);
    padding: .72rem 0;
    vertical-align: top;
    font-size: .9rem;
    line-height: 1.42;
}

.gr-price-card .wp-block-table thead {
    border-bottom: 0;
}

.gr-price-card .wp-block-table th {
    border: 0;
    padding: 0 0 .55rem;
    color: var(--gr-muted);
    font-size: .76rem;
    font-weight: 650;
    text-align: left;
}

.gr-price-card .wp-block-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.gr-price-card .wp-block-table td + td {
    padding-inline-start: .65rem;
    text-align: right;
    font-weight: 800;
    white-space: nowrap;
    color: var(--gr-orange-dark);
}

.gr-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 2rem;
    margin-block: 1.7rem 2rem;
}

.gr-work-item {
    border-top: 1px solid var(--gr-line);
    padding-top: 1rem;
}

.gr-work h3 {
    margin-bottom: .45rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.gr-work-item p {
    color: var(--gr-muted);
}

.gr-brands {
    border: 1px solid var(--gr-line);
    border-radius: 1rem;
    padding: clamp(1rem, 3vw, 1.9rem);
    background: #f1f5f6;
}

.gr-brand-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem 1.65rem;
    margin-block: .8rem;
    font-size: .95rem;
}

.gr-brand-types strong {
    display: block;
    margin-bottom: .15rem;
}

.gr-brands .gr-intro {
    max-width: none;
    font-size: .95rem;
}

.gr-stats {
    color: var(--gr-white);
    background: radial-gradient(ellipse at top right, #2b4355, var(--gr-navy) 62%);
}

.gr-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1.45rem;
}

.gr-stat {
    display: grid;
    align-content: start;
    gap: .45rem;
    padding: clamp(.9rem, 2vw, 1.55rem);
    border: 1px solid #ffffff30;
    border-radius: .85rem;
    background: #ffffff09;
    color: #e0e6ec;
}

.gr-stat strong {
    color: var(--gr-orange);
    font-size: clamp(2rem, 4.3vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.06em;
    white-space: nowrap;
}

.gr-gallery {
    background: var(--gr-paper);
}

.gr-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1.5rem;
}

.gr-landing .gr-photo {
    overflow: hidden;
    background: var(--gr-white);
    border: 1px solid var(--gr-line);
    border-radius: .85rem;
}

.gr-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #e9eef0;
}

.gr-landing .gr-photo figcaption {
    margin: 0;
    padding: .7rem .8rem;
    color: var(--gr-ink);
    font-size: .875rem;
    font-weight: 700;
    text-align: left;
}

.gr-landing .gr-photo .lightbox-trigger {
    width: 2.75rem;
    height: 2.75rem;
    opacity: 1;
    background: var(--gr-night);
    color: var(--gr-white);
}

.gr-landing .gr-photo .lightbox-trigger:focus-visible {
    outline: 2px solid var(--gr-orange);
    outline-offset: 2px;
}

.gr-area {
    background: #e9eef0;
}

.gr-split {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
    gap: clamp(1.6rem, 5.5vw, 5rem);
}

.gr-area .gr-places {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .55rem;
    padding: 0;
}

.gr-places li {
    background: #fff;
    border: 1px solid #d4dde1;
    border-radius: .45rem;
    padding: .48rem .72rem;
    font-size: .91rem;
    font-weight: 700;
}

.gr-faq {
    background: var(--gr-white);
}

.gr-faq details {
    border-top: 1px solid var(--gr-line);
    padding: .95rem 0;
}

.gr-faq details:last-child {
    border-bottom: 1px solid var(--gr-line);
}

.gr-faq summary {
    position: relative;
    min-height: 1.65rem;
    color: var(--gr-ink);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    padding-inline-end: 2.3rem;
}

.gr-faq summary::-webkit-details-marker {
    display: none;
}

.gr-faq summary::after {
    content: "";
    position: absolute;
    width: .6rem;
    height: .6rem;
    right: .45rem;
    top: .42rem;
    border: solid var(--gr-orange-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gr-faq details[open] summary::after {
    top: .73rem;
    transform: rotate(225deg);
}

.gr-faq summary:focus-visible {
    outline: 2px solid var(--gr-orange-dark);
    outline-offset: 3px;
}

.gr-faq details p {
    color: var(--gr-muted);
    padding-top: .75rem;
    padding-inline-end: 1rem;
}

.gr-contact {
    background-image: radial-gradient(ellipse at 90% 100%, #2f4558, transparent 66%);
    padding-block: clamp(2.5rem, 6vw, 4.75rem);
}

.gr-contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3.5rem;
}

.gr-contact .gr-intro {
    color: #d6e0e8;
}

.gr-contact .gr-contact-hours {
    margin-top: .65rem;
    color: var(--gr-orange);
    font-weight: 800;
}

.gr-footer {
    border-top: 1px solid #ffffff26;
    background: var(--gr-night);
    padding-block: 1.35rem;
}

.gr-footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    font-size: .875rem;
    color: #c3cdd5;
}

.gr-footer a {
    color: inherit;
    font-weight: 750;
    text-decoration: none;
}

.gr-credit a {
    text-decoration: underline;
    text-decoration-color: #ffffff68;
    text-underline-offset: .23em;
}

.gr-landing dialog.gr-site-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(40rem, calc(100% - 2rem));
    height: fit-content;
    max-height: calc(100% - 2rem);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--gr-line);
    border-radius: 1rem;
    background: var(--gr-white);
    color: var(--gr-ink);
}

.gr-site-dialog::backdrop {
    background: #0b141fbb;
}

.gr-dialog-body {
    display: grid;
    gap: .95rem;
    padding: clamp(1rem, 4vw, 2rem);
}

.gr-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.gr-dialog-header h2 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.gr-dialog-body p {
    color: var(--gr-muted);
}

.gr-dialog-body strong {
    color: var(--gr-ink);
}

.gr-dialog-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--gr-line);
    border-radius: .55rem;
    background: var(--gr-paper);
    color: var(--gr-ink);
    font: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.gr-dialog-close:focus-visible {
    outline: 2px solid var(--gr-orange-dark);
    outline-offset: 3px;
}

.gr-landing .gr-dialog-action {
    justify-self: start;
    white-space: normal;
    text-align: center;
}

.gr-standard {
    padding-block: 4rem;
}

@media (max-width: 63.99rem) {
    .gr-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gr-hero-layout {
        gap: clamp(1.2rem, 3.5vw, 2.8rem);
    }
}

@media (max-width: 48rem) {
    .gr-landing {
        --gr-header-height: 6.75rem;
    }
    .gr-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: auto;
        padding-block: .45rem .15rem;
        gap: .25rem .5rem;
    }
    .gr-nav {
        display: grid;
        grid-row: 2;
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .2rem;
        border-top: 1px solid #ffffff22;
        padding-top: .12rem;
    }
    .gr-nav a {
        padding-inline: .2rem;
    }
    .gr-landing .gr-brand {
        justify-self: start;
    }
    .gr-hero-layout, .gr-split {
        grid-template-columns: minmax(0, 1fr);
    }
    .gr-hero-media img {
        aspect-ratio: 4 / 3;
        object-position: center 62%;
    }
    .gr-landing h1 {
        max-width: 13ch;
        font-size: clamp(2.2rem, 8.5vw, 4rem);
    }
    .gr-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gr-landing {
        --gr-header-top: 0px;
    }
}

@media (max-width: 35rem) {
    .gr-price-grid, .gr-work-grid, .gr-brand-types, .gr-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .gr-stat {
        grid-template-columns: 6rem minmax(0, 1fr);
        align-items: center;
        gap: .6rem;
    }
    .gr-diagnostic {
        grid-template-columns: 1fr auto;
    }
    .gr-diagnostic-note {
        grid-column: 1 / -1;
    }
    .gr-actions > a {
        min-height: 3.25rem;
        padding-inline: .85rem;
        font-size: .93rem;
    }
    .gr-header .gr-phone {
        font-size: .8rem;
        padding-inline: .48rem;
    }
    .gr-brand-mark {
        width: 2.05rem;
        height: 2.05rem;
    }
    .gr-brand-name {
        font-size: .92rem;
    }
    .gr-brand-city {
        font-size: .7rem;
    }
}

@media (max-width: 29rem) {
    .gr-photo-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 23rem) {
    .gr-landing .gr-brand {
        gap: .45rem;
    }
    .gr-actions > a {
        width: 100%;
    }
}

@media (max-height: 28rem) {
    .gr-landing {
        --gr-header-height: 0px;
        --gr-header-top: 0px;
    }
    .gr-header {
        position: relative;
    }
}
