:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #7b4a2e;
    --primary-dark: #603823;
    --primary-soft: #f6eee8;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --radius: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: var(--text);
    line-height: 1.55;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a {
    text-decoration: none;
    color: #243041;
    font-weight: 700;
    font-size: 17px;
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.site-footer {
    margin-top: 72px;
    background: #141827;
    color: #fff;
    padding: 34px 0;
    font-size: 15px;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.footer-line {
    margin: 0;
}

.site-footer .footer-line:last-child {
    color: rgba(255, 255, 255, 0.72);
}

.footer-credit-link {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
    color: #ffffff;
}

.hero {
    padding: 72px 0 56px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    margin: 0 0 22px;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0 0 28px;
    font-size: 24px;
    color: #4b5563;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-visual {
    min-height: 420px;
    border-radius: 30px;
    background: #fcf8f5;
    border: 1px solid rgba(123, 74, 46, 0.08);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-logo-img {
    max-width: 80%;
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.section {
    padding: 28px 0 12px;
}

.section-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section h2,
.page h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.lead,
.muted {
    color: var(--muted);
}

.lead {
    font-size: 20px;
    margin: 10px 0 0;
}

.page {
    padding: 44px 0 24px;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    border: 0;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.button {
    background: var(--primary);
    color: #fff;
}

.button:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.7);
}

.card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.card-featured {
    background: #f2ebe6;
    border: 2px solid rgba(130, 66, 55, 0.78);
    box-shadow: 0 12px 30px rgba(130, 66, 55, 0.15);
}

.card-sold {
    background: #f8f8f8;
    filter: grayscale(1);
}

.card > a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

.card-body {
    padding: 22px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d4f3d 0%, #8d6b55 100%);
    color: #faf7f2;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(96, 56, 35, 0.16);
}

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.badge-promoted {
    background: linear-gradient(135deg, #7c3b31 0%, #98614f 100%);
    box-shadow: 0 6px 16px rgba(124, 59, 49, 0.24);
}

.badge-sold {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 6px 16px rgba(75, 85, 99, 0.18);
}

.company-logo-duze {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.2;
}

.price {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0 8px;
    color: #374151;
    letter-spacing: -0.01em;
}

.card .muted {
    font-size: 16px;
}

.card p {
    margin: 14px 0 0;
    color: #4b5563;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filters {
    background: rgba(255, 255, 255, 0.98);
    padding: 26px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin: 24px 0 34px;
}

.filters form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: end;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 16px;
}

select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #d6dae1;
    border-radius: 14px;
    font-size: 16px;
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(123, 74, 46, 0.5);
    box-shadow: 0 0 0 4px rgba(123, 74, 46, 0.10);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 34px;
    align-items: start;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 28px;
    background: #e5e7eb;
    display: block;
    box-shadow: 0 0 0 1px rgba(229, 231, 235, 0.85);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.thumb-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.thumb-btn img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #e5e7eb;
    transition: border-color .15s ease;
}

.thumb-btn:hover img,
.thumb-btn:focus-visible img,
.thumb-btn.is-active img {
    border-color: var(--primary);
}

.panel,
.box,
.card-soft {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.75);
    overflow-wrap: break-word;
}

.panel h1 {
    margin-top: 6px;
    margin-bottom: 16px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
}

.panel-featured {
    background: #f3ece7;
    border: 3px solid rgba(124, 59, 49, 0.68);
}

.panel .price {
    margin-top: 12px;
    margin-bottom: 18px;
}

.contact-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.offer-meta-strip {
    margin: 8px 0 22px;
    padding: 16px;
    border: 1px solid rgba(123, 74, 46, 0.16);
    border-radius: 16px;
    background: #fcf8f5;
}

.offer-meta-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b4a2e;
}

.offer-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.offer-meta-item {
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(123, 74, 46, 0.14);
    text-align: center;
}

.offer-meta-item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 4px;
}

.offer-meta-item strong {
    font-size: 16px;
    color: #1f2937;
}

.contact-box a,
.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.params {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.page .section > h2 {
    font-size: clamp(22px, 2.6vw, 36px);
    color: rgba(17, 24, 39, 0.7);
    letter-spacing: -0.01em;
}

.param {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(123, 74, 46, 0.12);
    border-top: 3px solid rgba(123, 74, 46, 0.22);
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 0;
    font-size: 14px;
    color: rgba(17, 24, 39, 0.8);
    text-align: center;
}

.param-label {
    display: block;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #c7a381;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.param-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: rgba(17, 24, 39, 0.9);
    overflow-wrap: break-word;
}

.video-box {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.card-narrow {
    max-width: 980px;
    margin: 0 auto;
}

.company-hero {
    padding: 10px 0 14px;
}

.company-hero-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(123, 74, 46, 0.08);
    box-shadow: var(--shadow-soft);
    border-radius: 30px;
    padding: 36px;
}

.company-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.company-hero-copy p {
    margin: 0;
    color: #4b5563;
    font-size: 20px;
    max-width: 650px;
}

.company-hero-side {
    background: #fcf8f5;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(123, 74, 46, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.company-hero-side .mini-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.company-hero-side .big-line {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.info-card .label {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.info-card .value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: var(--shadow-soft);
}

.social-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.form-card {
    max-width: 920px;
    margin: 0 auto;
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
}

.contact-company {
    margin-bottom: 24px;
}

.company-social {
    padding-top: 34px;
}

.commission-row {
    margin-top: 10px;
}

.contact-link-row {
    margin-top: 14px;
}

.field {
    margin-bottom: 18px;
}

.error-box,
.success-box,
.offer-box {
    padding: 18px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.error-box {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success-box {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.offer-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-grid,
    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .hero .container,
    .company-hero-card,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 280px;
    }

    .params {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters form {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 720px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        min-height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        height: 54px;
    }

    .nav {
        width: 100%;
        gap: 8px;
    }

    .nav a {
        padding: 8px 10px;
        font-size: 15px;
    }

    .hero {
        padding: 44px 0 18px;
    }

    .hero p {
        font-size: 18px;
    }

    .grid,
    .params,
    .info-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .box,
    .card-soft,
    .company-hero-card {
        padding: 22px;
        border-radius: 22px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }

    .thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .thumbs img {
        height: 88px;
    }

    .site-footer {
        margin-top: 48px;
        padding: 28px 0;
    }

    .site-footer .container {
        gap: 6px;
    }
}

.gallery-main--clickable {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.30);
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
