/*
Theme Name: Fasad Control
Theme URI: https://fasad-irk.ru/
Author: Codex
Description: Managed landing page theme for Fasad paving slabs.
Version: 2.8.0
Requires PHP: 8.1
Text Domain: fasad-control
*/

@font-face {
    font-family: "Manrope";
    src: url("assets/fonts/264732be-8803-4694-9251-cc2bafa7056b.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    src: url("assets/fonts/f32e3aeb-f8c3-4253-b3f5-999e960fa1af.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("assets/fonts/f2fcfbe2-da65-4b7f-a383-a779e3ceb3fc.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Oswald";
    src: url("assets/fonts/2aa43606-1386-43d9-a2f5-f0e6986d4f13.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --bg: #14120e;
    --panel: #1f1c16;
    --cream: #f0e9dc;
    --muted: #8e8474;
    --soft: #d8cfbe;
    --brick: #b84a22;
    --brick-dark: #9e3d1a;
    --line-dark: rgba(240, 233, 220, .14);
    --line-light: rgba(20, 18, 14, .1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--cream);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

body.admin-bar .fsd-header {
    top: 32px;
}

a {
    color: inherit;
}

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

.fsd-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 5%, rgba(184, 74, 34, .24), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(240, 233, 220, .08), transparent 24rem),
        var(--bg);
}

.fsd-container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.fsd-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 50;
    width: min(1320px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(240, 233, 220, .14);
    border-radius: 14px;
    background: rgba(20, 18, 14, .72);
    box-shadow: 0 18px 70px rgba(0, 0, 0, .28);
    backdrop-filter: blur(20px);
}

.fsd-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.fsd-brand img {
    width: 126px;
}

.fsd-brand-fallback {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--brick);
    color: var(--cream);
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.fsd-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.fsd-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fsd-nav a:hover {
    background: rgba(240, 233, 220, .08);
    color: var(--cream);
}

.fsd-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    background: var(--brick);
    color: var(--cream);
    font-weight: 800;
    text-decoration: none;
}

.fsd-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    background: transparent;
    color: var(--cream);
    font: 700 22px/1 "Manrope";
}

.fsd-hero {
    position: relative;
    min-height: 82svh;
    display: grid;
    align-items: center;
    padding: 136px 0 64px;
}

.fsd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 880px);
    gap: 28px;
    align-items: center;
}

.fsd-kicker {
    margin: 0 0 14px;
    color: var(--brick);
    font: 700 14px/1.2 "Manrope";
    letter-spacing: 0;
    text-transform: uppercase;
}

.fsd-title,
.fsd-section-title {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.fsd-title {
    max-width: 820px;
    font-size: clamp(32px, 4.6vw, 64px);
    line-height: 1.04;
}

.fsd-title span,
.fsd-section-title span {
    color: var(--brick);
}

.fsd-hero-text {
    max-width: 720px;
    margin: 26px 0 0;
    color: var(--soft);
    font-size: clamp(17px, 1.55vw, 21px);
    font-weight: 600;
    line-height: 1.45;
}

.fsd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.fsd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--brick);
    border-radius: 12px;
    background: var(--brick);
    color: var(--cream);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.fsd-btn:hover {
    transform: translateY(-2px);
    background: var(--brick-dark);
    border-color: var(--brick-dark);
}

.fsd-btn.is-ghost {
    background: transparent;
    border-color: rgba(240, 233, 220, .28);
    color: var(--cream);
}

.fsd-btn.is-light {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--bg);
}

.fsd-btn.is-light:hover {
    background: #fff7e9;
    border-color: #fff7e9;
}

.fsd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 46px;
}

.fsd-stat {
    min-height: 126px;
    padding: 18px;
    border: 1px solid var(--line-dark);
    border-radius: 13px;
}

.fsd-stat strong {
    display: block;
    color: var(--cream);
    font-family: "Oswald", sans-serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 600;
    line-height: 1;
}

.fsd-stat span {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.fsd-section {
    padding: clamp(64px, 8vw, 116px) 0;
}

.fsd-light {
    background: var(--cream);
    color: var(--bg);
}

.fsd-section-head {
    max-width: 850px;
    margin-bottom: clamp(34px, 5vw, 58px);
}

.fsd-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.fsd-section-title {
    font-size: clamp(34px, 5vw, 70px);
    line-height: .96;
}

.fsd-lead {
    max-width: 720px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.fsd-catalog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.fsd-product {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(30, 24, 17, .08);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.fsd-product:hover {
    border-color: rgba(184, 74, 34, .42);
    box-shadow: 0 20px 44px rgba(30, 24, 17, .13);
    transform: translateY(-4px);
}

.fsd-product h3,
.fsd-card h3,
.fsd-step h3,
.fsd-project h3 {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
}

.fsd-product p,
.fsd-card p,
.fsd-step p,
.fsd-project p {
    margin: 10px 0 0;
    color: #5c5446;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.fsd-product-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--line-light);
    background: #eeeae3;
}

.fsd-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.fsd-product:hover .fsd-product-image img {
    transform: scale(1.025);
}

.fsd-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.fsd-product-copy {
    flex: 1;
}

.fsd-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e4ddd1;
    color: var(--brick);
    font-family: "Oswald", sans-serif;
    font-size: 31px;
    font-weight: 600;
    line-height: 1.05;
}

.fsd-product-actions {
    margin-top: 16px;
}

.fsd-product-actions .fsd-btn {
    width: 100%;
}

.fsd-price small {
    color: #7a7060;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.fsd-calculator {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr);
    gap: 18px;
}

.fsd-calc-panel,
.fsd-calc-result,
.fsd-form-panel {
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: var(--panel);
}

.fsd-calc-panel,
.fsd-form-panel {
    padding: clamp(24px, 3vw, 40px);
}

.fsd-calc-result {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3vw, 34px);
}

.fsd-fieldset {
    margin-bottom: 26px;
}

.fsd-label {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fsd-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fsd-seg {
    padding: 11px 16px;
    border: 1px solid rgba(240, 233, 220, .16);
    border-radius: 10px;
    background: transparent;
    color: var(--cream);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.fsd-seg.is-active {
    background: var(--brick);
    border-color: var(--brick);
}

.fsd-seg:disabled {
    opacity: .36;
    cursor: not-allowed;
}

.fsd-range {
    width: 100%;
    accent-color: var(--brick);
}

.fsd-check {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--soft);
    font-weight: 700;
}

.fsd-check.is-disabled {
    opacity: .42;
}

.fsd-result-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-dark);
    color: var(--soft);
    font-size: 14px;
    font-weight: 700;
}

.fsd-result-line strong {
    color: var(--cream);
}

.fsd-total {
    margin-top: 28px;
}

.fsd-total span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fsd-total strong {
    display: block;
    margin-top: 6px;
    color: var(--brick);
    font-family: "Oswald", sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
}

.fsd-estimate-download {
    width: 100%;
    margin-top: 28px;
}

.fsd-calc-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
}

.fsd-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.fsd-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fsd-project {
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    background: var(--panel);
}

.fsd-project img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.fsd-project div {
    padding: 20px;
}

.fsd-project h3 {
    color: var(--cream);
}

.fsd-project p {
    color: var(--muted);
}

.fsd-card,
.fsd-step {
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
}

.fsd-card-num,
.fsd-step-num {
    display: block;
    margin-bottom: 34px;
    color: var(--brick);
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-weight: 600;
}

.fsd-card h3,
.fsd-step h3 {
    color: var(--cream);
}

.fsd-card p,
.fsd-step p {
    color: var(--muted);
}

.fsd-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.fsd-about {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.fsd-about-copy {
    max-width: 760px;
    margin-top: 24px;
}

.fsd-about-copy p {
    margin: 0 0 16px;
    color: var(--soft);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.68;
}

.fsd-about-copy p:last-child {
    margin-bottom: 0;
}

.fsd-about-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.fsd-about-facts div {
    min-height: 138px;
    padding: 20px;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(184, 74, 34, .14), transparent 56%),
        var(--panel);
}

.fsd-about-facts strong {
    display: block;
    color: var(--cream);
    font-family: "Oswald", sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 600;
    line-height: .95;
    text-transform: uppercase;
}

.fsd-about-facts span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.fsd-map-card {
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.fsd-map-card iframe {
    display: block;
    width: 100%;
    min-height: 430px;
    border: 0;
}

.fsd-map-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid var(--line-dark);
}

.fsd-map-info strong,
.fsd-map-info span {
    display: block;
}

.fsd-map-info strong {
    color: var(--cream);
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
}

.fsd-map-info span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.fsd-faq {
    max-width: 920px;
    margin: 0 auto;
}

.fsd-faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--line-light);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.fsd-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border: 0;
    background: transparent;
    color: var(--bg);
    text-align: left;
    cursor: pointer;
}

.fsd-faq-q span:first-child {
    font-family: "Oswald", sans-serif;
    font-size: 21px;
    font-weight: 600;
    text-transform: uppercase;
}

.fsd-faq-q span:last-child {
    color: var(--brick);
    font-family: "Oswald", sans-serif;
    font-size: 28px;
}

.fsd-faq-a {
    display: none;
    max-width: 720px;
    padding: 0 26px 24px;
    color: #5c5446;
    font-weight: 600;
    line-height: 1.65;
}

.fsd-faq-item.is-open .fsd-faq-a {
    display: block;
}

.fsd-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
}

.fsd-contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fsd-contact-label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fsd-contact-list a,
.fsd-contact-list div {
    color: var(--soft);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5;
}

.fsd-contact-list .fsd-big-link {
    display: block;
    color: var(--cream);
    font-family: "Oswald", sans-serif;
    font-size: clamp(23px, 2.4vw, 31px);
    font-weight: 600;
    line-height: 1.25;
}

.fsd-input,
.fsd-textarea {
    width: 100%;
    border: 1px solid rgba(240, 233, 220, .16);
    border-radius: 11px;
    background: var(--bg);
    color: var(--cream);
    font: 600 15px/1.4 "Manrope", sans-serif;
    outline: none;
}

.fsd-input {
    min-height: 50px;
    padding: 0 16px;
}

.fsd-textarea {
    min-height: 104px;
    padding: 14px 16px;
    resize: vertical;
}

.fsd-input:focus,
.fsd-textarea:focus {
    border-color: var(--brick);
}

.fsd-form-status {
    min-height: 22px;
    color: var(--soft);
    font-size: 13px;
    font-weight: 700;
}

.fsd-modal-lock {
    overflow: hidden;
}

.fsd-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fsd-modal.is-open {
    display: flex;
}

.fsd-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 9, 7, .72);
    backdrop-filter: blur(12px);
}

.fsd-modal-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: min(760px, calc(100svh - 48px));
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
    gap: 24px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(240, 233, 220, .18);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(184, 74, 34, .18), transparent 44%),
        var(--panel);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.fsd-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(240, 233, 220, .18);
    border-radius: 10px;
    background: rgba(20, 18, 14, .7);
    color: var(--cream);
    font: 700 24px/1 "Manrope";
    cursor: pointer;
}

.fsd-modal-title {
    margin: 0;
    color: var(--cream);
    font-family: "Oswald", sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.04;
    text-transform: uppercase;
}

.fsd-modal-copy p:last-child {
    margin: 18px 0 0;
    color: var(--soft);
    font-weight: 700;
    line-height: 1.6;
}

.fsd-modal-form .fsd-fieldset:last-of-type {
    margin-bottom: 18px;
}

.fsd-footer {
    background: #0f0d0a;
    color: var(--muted);
    padding: 48px 0 40px;
}

.fsd-footer-top,
.fsd-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
}

.fsd-footer-top {
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(240, 233, 220, .1);
}

.fsd-footer-bottom {
    padding-top: 24px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.6;
}

.fsd-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.fsd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1060px) {
    .fsd-header {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .fsd-menu-button {
        display: block;
    }

    .fsd-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        padding: 12px;
        border: 1px solid var(--line-dark);
        border-radius: 14px;
        background: rgba(20, 18, 14, .96);
    }

    .fsd-header.is-open .fsd-nav {
        display: flex;
    }

    .fsd-hero-grid,
    .fsd-calculator,
    .fsd-about,
    .fsd-lead-grid {
        grid-template-columns: 1fr;
    }

    .fsd-catalog,
    .fsd-projects,
    .fsd-grid-3,
    .fsd-steps,
    .fsd-stats,
    .fsd-about-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    body.admin-bar .fsd-header {
        top: 46px;
    }

    .fsd-container {
        width: min(100% - 32px, 1320px);
    }

    .fsd-header {
        top: 10px;
        width: calc(100% - 20px);
        gap: 10px;
    }

    .fsd-brand img {
        width: 98px;
    }

    .fsd-phone {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .fsd-hero {
        padding-top: 124px;
    }

    .fsd-title {
        font-size: 34px;
    }

    .fsd-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .fsd-modal-panel {
        grid-template-columns: 1fr;
        max-height: calc(100svh - 24px);
        gap: 12px;
        padding: 24px 18px 18px;
        border-radius: 16px;
    }

    .fsd-catalog,
    .fsd-projects,
    .fsd-grid-3,
    .fsd-steps,
    .fsd-stats,
    .fsd-about-facts {
        grid-template-columns: 1fr;
    }

    .fsd-map-card iframe {
        min-height: 340px;
    }

    .fsd-map-info {
        align-items: stretch;
        flex-direction: column;
    }

    .fsd-map-info .fsd-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
