/*
Theme Name: Pyrofire
Theme URI: https://new.zritex.ru/
Author: Codex
Description: Custom migration theme for the Pyro Ostroff site rebuild on WordPress.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: pyrofire
*/

:root {
    --pf-page: #efefef;
    --pf-surface: #ffffff;
    --pf-surface-soft: #f5f5f5;
    --pf-text: #2f2f2f;
    --pf-muted: #6c6c6c;
    --pf-accent: #ef5d13;
    --pf-accent-dark: #cf4500;
    --pf-line: #d8d8d8;
    --pf-max: 960px;
    --pf-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--pf-page);
    color: var(--pf-text);
    font: normal 9pt/12pt Arial, Verdana, Tahoma, sans-serif;
}

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

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

.pf-shell {
    width: min(calc(100% - 24px), var(--pf-max));
    margin: 0 auto;
}

.pf-topline {
    height: 30px;
    line-height: 30px;
    background: #1e1e1e;
    color: #fff;
    font-size: 12px;
}

.pf-topline__inner,
.pf-topline__meta {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.pf-topline__link {
    color: #fff;
    text-decoration: none;
}

.pf-topline__link--mail,
.pf-topline__link--phone,
.pf-topline__link--letter {
    padding-right: 16px;
    background-position: right center;
    background-repeat: no-repeat;
}

.pf-topline__link--mail {
    background-image: url("assets/legacy/icon_mail.jpg");
}

.pf-topline__link--phone {
    background-image: url("assets/legacy/icon_phone.jpg");
}

.pf-topline__link--letter {
    background-image: url("assets/legacy/icon_letter.jpg");
}

.pf-header {
    padding: 28px 0 30px;
    background:
        radial-gradient(circle at center, #ededed 0%, #d8d8d8 58%, #cbcbcb 100%);
    border-bottom: 1px solid #c5c5c5;
    box-shadow: inset 0 -18px 34px rgba(255, 255, 255, 0.45);
}

.pf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 132px;
}

.pf-brand {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #2d2d2d;
    flex: 1 1 auto;
    min-width: 0;
}

.pf-brand__logo {
    width: 128px;
    height: auto;
    flex: 0 0 auto;
}

.pf-brand__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pf-brand__title {
    font-size: clamp(34px, 4.4vw, 58px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.pf-brand__tag {
    color: #6f6f6f;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pf-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 18px;
    color: #515151;
    font-size: 12px;
    text-transform: uppercase;
    max-width: 360px;
}

.pf-nav a:hover {
    color: #000;
}

.pf-main {
    padding: 0 0 44px;
}

.pf-hero__frame,
.pf-section__frame,
.pf-panel,
.pf-equipment__item,
.pf-footer__inner {
    background: var(--pf-surface);
    border: 1px solid #cecece;
    box-shadow: var(--pf-shadow);
}

.pf-hero {
    margin-top: -54px;
    margin-bottom: 42px;
}

.pf-hero__layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.28fr);
    gap: 22px;
    align-items: stretch;
}

.pf-hero__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 30px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 241, 241, 0.96));
    border: 1px solid #d9d9d9;
    box-shadow: var(--pf-shadow);
}

.pf-hero__brand {
    margin: 0;
    color: #243247;
    font: 700 clamp(34px, 4.2vw, 56px)/0.96 Georgia, "Times New Roman", serif;
}

.pf-hero__summary {
    margin: 0;
    color: #5a6573;
    font-size: 15px;
    line-height: 1.8;
}

.pf-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pf-hero__meta-item {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #d7dee7;
}

.pf-hero__meta-item strong {
    display: block;
    margin-bottom: 6px;
    color: #26344a;
    font-size: 17px;
}

.pf-hero__meta-item span {
    color: #667387;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pf-hero__frame {
    padding: 11px;
    background:
        url("assets/legacy/bgr_slideshow.png") center top/cover no-repeat,
        #fff;
}

.pf-hero__stage {
    position: relative;
    min-height: 415px;
    overflow: hidden;
    border: 1px solid #bdbdbd;
}

.pf-hero__media img {
    width: 100%;
    min-height: 415px;
    object-fit: cover;
}

.pf-hero__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 30px 24px;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.74) 100%);
}

.pf-hero__eyebrow,
.pf-section__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--pf-accent);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pf-hero h1,
.pf-hero h2,
.pf-section__title,
.pf-panel h3,
.pf-service h3,
.pf-equipment__body h3,
.pf-portfolio__caption h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.pf-hero h1,
.pf-hero h2 {
    font-size: 34px;
    line-height: 1.05;
}

.pf-hero__lead {
    max-width: 420px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.pf-hero__ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.pf-hero__metric {
    padding: 14px 16px;
    background: linear-gradient(180deg, #3f3f3f 0%, #1f1f1f 100%);
    color: #fff;
}

.pf-hero__metric strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.pf-hero__metric span {
    color: #c8c8c8;
    font-size: 12px;
}

.pf-section {
    margin-bottom: 28px;
}

.pf-row {
    padding: 34px 0 44px;
}

.pf-row--gray {
    background:
        url("assets/legacy/nail_top.png") repeat-x left top,
        url("assets/legacy/nail_bottom.png") repeat-x left bottom,
        radial-gradient(circle at center, #ededed 0%, #d3d3d3 100%);
}

.pf-row--white {
    background:
        url("assets/legacy/nail_top.png") repeat-x left top,
        url("assets/legacy/nail_bottom.png") repeat-x left bottom,
        #ffffff;
}

.pf-section__head {
    margin: 0 0 26px;
    text-align: center;
    border-bottom: 1px solid #d3d6db;
    height: 7px;
    overflow: visible;
}

.pf-section__title {
    display: inline-block;
    margin: -14px auto 0;
    padding: 0 18px;
    background: #fff;
    font-size: 18px;
    line-height: 1.1;
    color: #4b4b4b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-section--company .pf-shell,
.pf-section--equipment .pf-shell,
.pf-section--portfolio .pf-shell,
.pf-section--feedback .pf-shell {
    padding: 22px;
    background: #fff;
    border: 1px solid #d6d6d6;
    box-shadow: var(--pf-shadow);
}

.pf-section--services .pf-section__title,
.pf-section--archive .pf-section__title,
.pf-section--single .pf-section__title {
    background: #fff;
}

.pf-company {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 22px;
    align-items: start;
}

.pf-company__body {
    margin: 0;
    color: #535353;
    font-style: italic;
    font-size: 120%;
    line-height: 200%;
}

.pf-company__facts {
    display: grid;
    gap: 14px;
}

.pf-company__badge,
.pf-company__gerb {
    padding: 10px;
    background: linear-gradient(180deg, #f8f8f8 0%, #ececec 100%);
    border: 1px solid #d7d7d7;
}

.pf-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.pf-panel {
    padding: 18px 20px;
}

.pf-panel h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #4e4e4e;
    text-transform: uppercase;
}

.pf-list {
    margin: 0;
    padding-left: 18px;
    color: #5c5c5c;
}

.pf-list li + li {
    margin-top: 8px;
}

.pf-section--services .pf-section__frame {
    padding: 22px;
}

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

.pf-service {
    display: block;
    min-height: 0;
    padding: 20px 18px 18px;
    text-align: center;
    border: 1px solid #e3e3e3;
    background: linear-gradient(180deg, #fff, #fafafa);
}

.pf-service__icon {
    position: relative;
    width: 46px;
    min-height: 81px;
    margin: 0 auto 16px;
    background: url("assets/legacy/icon_services_shadd.png") left top no-repeat;
}

.pf-service__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/legacy/icon_services.png") center 10px no-repeat;
}

.pf-service__icon span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 81px;
    color: #ffffff;
    font: bold 14pt/17pt "Trebuchet MS", Tahoma, Verdana, sans-serif;
}

.pf-service h3 {
    margin-bottom: 10px;
    font-size: 150%;
    color: #4d4d4d;
    text-transform: uppercase;
}

.pf-service p {
    text-align: left;
}

.pf-service p,
.pf-equipment__body p,
.pf-contacts p {
    margin: 0;
    color: #666;
}

.pf-equipment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    background: none;
}

.pf-equipment__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d9d9d9;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    text-align: left;
    min-height: 100%;
}

.pf-equipment__thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.pf-equipment__body h3 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #444;
}

.pf-equipment__body p {
    line-height: 1.75;
}

.pf-portfolio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: auto;
    margin: 0;
}

.pf-portfolio__item {
    position: relative;
    overflow: hidden;
    min-height: 0;
    aspect-ratio: 1 / 1;
    background: #000;
    border: 1px solid #d3d3d3;
}

.pf-portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.pf-portfolio__item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.pf-portfolio__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 14px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(24, 32, 43, 0.85) 100%);
    border-radius: 0;
    color: #fff;
}

.pf-portfolio__caption h3 {
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.pf-contacts {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 22px;
    padding: 24px;
    color: #fff;
    background-position: center;
    background-size: cover;
    box-shadow: var(--pf-shadow);
}

.pf-feedback {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.pf-feedback__form {
    display: grid;
    gap: 12px;
}

.pf-feedback__form input,
.pf-feedback__form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d3d3d3;
    background: #fafafa;
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    color: #4f4f4f;
}

.pf-feedback__copy {
    color: #5e5e5e;
    padding-top: 8px;
}

.pf-roll {
    width: 150px;
    margin: -16px auto 0;
    padding: 0 0 104px;
    background: url("assets/legacy/icon_roll.png") no-repeat center bottom;
    text-align: center;
    text-transform: uppercase;
    color: #2a83c2;
    font-size: 12px;
    position: relative;
    z-index: 5;
}

.pf-contacts .pf-section__title {
    color: #fff;
    background: transparent;
}

.pf-contacts p {
    color: rgba(255, 255, 255, 0.88);
}

.pf-contacts__meta {
    display: grid;
    gap: 12px;
    align-content: start;
}

.pf-contact-line {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pf-contact-line strong {
    display: block;
    margin-bottom: 4px;
    color: #f5b37f;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pf-footer {
    padding: 0 0 40px;
}

.pf-footer__menu {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 0 0 16px;
    font-size: 12px;
    text-transform: uppercase;
}

.pf-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pf-footer__copyright,
.pf-footer__text {
    text-align: center;
    color: #cccccc;
    font-size: 80%;
    line-height: 80%;
}

.pf-footer__text {
    margin: 0;
    max-width: none;
}

.pf-section--archive .pf-shell,
.pf-section--single .pf-shell {
    padding: 22px;
    background: #fff;
    border: 1px solid #d6d6d6;
    box-shadow: var(--pf-shadow);
}

.pf-services--archive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 34px;
}

.pf-service--card {
    background: transparent;
    border: 0;
    padding: 0;
}

.pf-service--card h2,
.pf-equipment__body h2,
.pf-portfolio__caption h2 {
    margin: 0 0 8px;
    font: 400 18px/1.1 Georgia, "Times New Roman", serif;
    color: #464646;
    text-transform: uppercase;
}

.pf-inline-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--pf-accent-dark);
    font-weight: 700;
}

.pf-single {
    padding: 12px 0;
}

.pf-single__content {
    color: #575757;
    font-size: 15px;
}

.pf-single__media {
    margin-bottom: 18px;
    border: 1px solid #d6d6d6;
    background: #f4f4f4;
    overflow: hidden;
}

.pf-single__media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.pf-single__content h2,
.pf-single__content h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #4d4d4d;
    text-transform: uppercase;
    font-size: 18px;
}

.pf-single__back {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #dfdfdf;
}

.pf-portfolio__item--link a {
    display: block;
    min-height: 237px;
    color: inherit;
}

.pf-portfolio__item--link img {
    width: 100%;
    height: 237px;
    object-fit: cover;
    filter: grayscale(100%);
}

.pf-portfolio__item--link .pf-portfolio__caption {
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pf-section__eyebrow,
.pf-hero__eyebrow {
    display: none;
}

@media (max-width: 900px) {
    .pf-topline {
        height: auto;
        line-height: 1.4;
        padding: 10px 0;
    }

    .pf-topline__inner,
    .pf-topline__meta,
    .pf-header__inner,
    .pf-company,
    .pf-columns,
    .pf-services,
    .pf-equipment__item,
    .pf-feedback,
    .pf-contacts,
    .pf-footer__inner {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .pf-header__inner {
        align-items: flex-start;
        padding: 8px 0;
    }

    .pf-hero {
        margin-top: -20px;
    }

    .pf-hero__layout,
    .pf-services,
    .pf-equipment,
    .pf-portfolio,
    .pf-hero__meta {
        grid-template-columns: 1fr;
        width: auto;
    }

    .pf-nav {
        gap: 10px 14px;
        justify-content: flex-start;
        max-width: none;
    }

    .pf-hero__ribbon,
    .pf-portfolio,
    .pf-services--archive {
        grid-template-columns: 1fr;
    }

    .pf-equipment__item {
        display: block;
    }

    .pf-equipment__thumb {
        margin-bottom: 14px;
    }

    .pf-brand__logo {
        width: 96px;
    }

    .pf-brand__title {
        font-size: 34px;
    }

    .pf-hero__intro {
        padding: 24px 20px;
    }

    .pf-feedback {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pf-shell {
        width: min(calc(100% - 18px), var(--pf-max));
    }

    .pf-brand {
        gap: 12px;
    }

    .pf-brand__logo {
        width: 76px;
    }

    .pf-brand__title {
        font-size: 28px;
    }

    .pf-brand__tag {
        font-size: 11px;
        line-height: 1.35;
    }

    .pf-hero__stage,
    .pf-hero__media img {
        min-height: 300px;
    }

    .pf-hero__overlay {
        padding: 20px 18px 18px;
    }

    .pf-section--company .pf-shell,
    .pf-section--equipment .pf-shell,
    .pf-section--portfolio .pf-shell,
    .pf-section--feedback .pf-shell,
    .pf-section--services .pf-section__frame {
        padding: 16px;
    }

    .pf-service,
    .pf-equipment__item {
        padding: 16px;
    }

    .pf-portfolio__caption {
        padding: 12px;
    }

    .pf-portfolio__caption h3 {
        font-size: 16px;
    }
}
