/* ============================================================
   ТЫНДАСПЕЦТЕХНИКА — деловая тема
   Шапка белая, фон сайта серый, акцент зелёный
   ============================================================ */

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Фоны */
    --bg: #ffffff;
    --bg-soft: #f3f4f6;
    --bg-mid: #e5e7eb;
    --bg-dark: #1f2937;
    --bg-black: #111827;

    /* Границы */
    --border: #e5e7eb;
    --border-strong: #d1d5db;

    /* Текст */
    --text: #111827;
    --text-muted: #4b5563;
    --text-dim: #6b7280;
    --text-light: #e5e7eb;

    /* Акцент — зелёный */
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-soft: #f0fdf4;
    --accent-border: rgba(22, 163, 74, 0.25);
    --accent-light: #4ade80;

    /* Тени */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

    /* Скругления */
    --radius: 10px;
    --radius-lg: 14px;
    --container: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   ШАПКА — БЕЛАЯ
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 120px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.logo-icon {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo-accent {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 36px;
    font-size: 1.15rem;
}

.main-nav a {
    position: relative;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.header-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-max:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.header-max-icon {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.header-phone {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    transition: color 0.2s ease;
}

.header-phone:hover {
    color: var(--accent);
}

.header-phone-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.header-hours {
    color: var(--text-dim);
    font-size: 0.78rem;
}

/* ============================================================
   FLASH-СООБЩЕНИЯ
   ============================================================ */
.messages-wrap {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.flash {
    position: relative;
    padding: 16px 20px 20px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    overflow: hidden;
    pointer-events: auto;
    background: #ffffff;
    box-shadow: var(--shadow-lg);

    animation:
        flashIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        flashOut 0.5s ease 5s forwards;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes flashOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 200px;
        margin-bottom: 0;
        padding-top: 16px;
        padding-bottom: 20px;
    }
    to {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
        max-height: 0;
        margin-bottom: -12px;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

.flash::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    animation: flashTimer 5s linear forwards;
}

@keyframes flashTimer {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.flash-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.flash-success::after { background: var(--accent); }

.flash-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.flash-error::after { background: #dc2626; }

.flash-warning { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.flash-warning::after { background: #f97316; }

.flash-info { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.flash-info::after { background: #3b82f6; }

/* ============================================================
   HERO — текст слева, два фото справа
   ============================================================ */
.hero {
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    border-bottom: 1px solid #1f2937;
    overflow: hidden;
    min-height: 640px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 0 80px;
    gap: 48px;
    min-height: 640px;
}

.hero-text {
    flex: 0 0 45%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 80px 0;
    margin: 0;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    color: #ffffff;
}

.gradient-text {
    color: #4ade80;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: #e5e7eb;
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: #d1d5db;
}

/* ============================================================
   ДВА ФОТО СПРАВА — ПАРАЛЛЕЛОГРАММЫ
   ============================================================ */
.hero-images {
    flex: 0 0 50%;
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 640px;
    margin-right: -80px;
    transform: translateX(60px);
}

.hero-image {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
}

.hero-image-1 {
    flex: 0 0 50%;
    transform: skewX(-12deg) translateX(0);
    transform-origin: center center;
}

.hero-image-2 {
    flex: 0 0 50%;
    transform: skewX(-12deg) translateX(30px);
    transform-origin: center center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: skewX(12deg) scale(1.4);
    transform-origin: center center;
}

.hero-image-1 img {
    object-position: 30% center;
}

.hero-image-2 img {
    transform: skewX(12deg) scale(1.6) translate(-60px, -100px);
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.005em;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: #ffffff;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
    background: #ffffff;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    margin: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
    padding-right: 40px;
    color: var(--text);
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
    line-height: 1.55;
}

/* ============================================================
   ФОРМА
   ============================================================ */
.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 6px;
    padding-left: 4px;
}

.form-checkbox {
    margin: 18px 0 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================================
   ПОДВАЛ — тёмно-серый
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    margin-top: auto;
    border-top: 1px solid var(--bg-black);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding: 64px 24px 40px;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.footer-col p {
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-col a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #6b7280;
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.page-head {
    padding: 80px 0 40px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    color: var(--text);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
}

.catalog {
    padding: 48px 0 100px;
    background: var(--bg-soft);
}

.catalog-group {
    margin-bottom: 72px;
}

.catalog-group-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.015em;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.card-image {
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.04);
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.card-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.card-specs li {
    color: var(--text-muted);
    font-size: 0.84rem;
    padding-left: 16px;
    position: relative;
}

.card-specs li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.card-prices {
    display: flex;
    gap: 24px;
    margin-top: auto;
    padding-top: 4px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.price-unit {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.catalog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-strong);
}

/* ============================================================
   ТЕХНИКА В НАЛИЧИИ — белый блок
   ============================================================ */
.featured {
    padding: 100px 0 120px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.featured-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

.featured-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.featured-link:hover {
    color: var(--accent);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    color: inherit;
}

.featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.02)),
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 14px,
            rgba(17, 24, 39, 0.03) 14px,
            rgba(17, 24, 39, 0.03) 28px
        ),
        var(--bg-soft);
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.featured-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text);
}

.featured-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.featured-card-stub {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.featured-card-stub .featured-name {
    color: var(--text-dim);
}

/* ============================================================
   ОКАЗАННЫЕ УСЛУГИ / ОТЗЫВЫ
   ============================================================ */
.services {
    padding: 100px 0 120px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.services-head {
    text-align: center;
    margin-bottom: 56px;
}

.services-head .section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.service-card::before {
    content: '"';
    position: absolute;
    top: 8px;
    right: 24px;
    font-size: 5rem;
    font-family: Georgia, serif;
    line-height: 1;
    color: rgba(22, 163, 74, 0.08);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.service-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text);
}

.service-role {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.service-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.service-rating {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.service-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.service-card-stub {
    opacity: 0.65;
}

.service-card-stub .service-avatar {
    background: var(--border-strong);
    color: var(--text-dim);
}

/* ============================================================
   СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ============================================================ */
.privacy {
    padding: 60px 0 100px;
    background: var(--bg-soft);
}

.privacy-content {
    max-width: 860px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    box-shadow: var(--shadow-sm);
}

.privacy-meta {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.privacy-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.privacy-content h2:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.privacy-content ul {
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.privacy-content ul li {
    margin-bottom: 6px;
}

.privacy-content a {
    color: var(--accent);
    text-decoration: underline;
}

.privacy-content a:hover {
    color: var(--accent-hover);
}

.privacy-content strong {
    color: var(--text);
    font-weight: 600;
}

.privacy-footnote {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-style: italic;
    font-size: 0.88rem !important;
    color: var(--text-dim) !important;
}

/* ============================================================
   АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ
   ============================================================ */

/* ---------- Планшет горизонтальный (≤1100px) ---------- */
@media (max-width: 1100px) {
    .header-inner { gap: 24px; height: 100px; }
    .logo-icon { width: 88px; height: 88px; max-width: 88px; max-height: 88px; }
    .main-nav { gap: 22px; font-size: 1rem; }
    .header-phone { font-size: 1.25rem; }
    .header-phone-icon { width: 22px !important; height: 22px !important; max-width: 22px !important; max-height: 22px !important; }
    .header-max-icon { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
    .hero-inner { padding-left: 40px; gap: 32px; }
    .hero-text { flex: 0 0 50%; }
    .hero-images { gap: 14px; margin-right: -60px; }
}

/* ---------- Планшет вертикальный / большой телефон (≤900px) ---------- */
@media (max-width: 900px) {
    .header-inner { height: 80px; gap: 14px; }
    .main-nav { display: none; }
    .logo { font-size: 1rem; gap: 10px; }
    .logo-icon { width: 56px; height: 56px; max-width: 56px; max-height: 56px; }
    .header-phone { font-size: 0.85rem; gap: 5px; }
    .header-phone-icon { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
    .header-hours { display: none; }
    .messages-wrap { top: 96px; }

    /* MAX — под телефоном на мобильных */
    .header-contacts {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .header-contact-info {
        align-items: flex-end;
    }

    .header-max-icon {
        width: 32px;
        height: 32px;
        max-width: 32px;
        max-height: 32px;
    }

    .hero { min-height: auto; }
    .hero-inner {
        flex-direction: column;
        padding: 0;
        gap: 0;
        min-height: auto;
    }
    .hero-text {
        flex: 1 1 auto;
        max-width: none;
        padding: 48px 24px 24px;
    }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .hero-subtitle { max-width: none; margin-bottom: 32px; }
    .hero-buttons { width: 100%; margin-bottom: 32px; }

    .hero-stats {
        gap: 24px;
        width: 100%;
        margin-bottom: 24px;
    }
    .stat-num { font-size: 1.5rem; }

    .hero-images {
        flex-direction: row;
        gap: 10px;
        margin-right: 0;
        margin-top: 0;
        padding: 0 16px 24px;
        min-height: auto;
        transform: none;
    }
    .hero-image,
    .hero-image-1,
    .hero-image-2 {
        min-height: 160px;
        height: 160px;
        transform: none;
        flex: 1 1 50%;
        box-shadow: none;
        border-radius: 10px;
        overflow: hidden;
    }

    .hero-image img,
    .hero-image-1 img,
    .hero-image-2 img {
        transform: none;
        object-position: center center;
    }

    /* Вторая картинка — ПОДНЯТА внутри рамки */
    .hero-image-2 img {
        object-position: center 80%;
    }

    .featured, .services, .catalog { padding: 56px 0 64px; }
    .page-head { padding: 48px 0 28px; }
    .cards, .featured-grid, .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 24px 32px; }
}

/* ---------- Мобильные (≤600px) ---------- */
@media (max-width: 600px) {
    .container { padding: 0 16px; }

    .header-inner { height: 64px; gap: 10px; }
    .logo { font-size: 0.9rem; gap: 8px; }
    .logo-icon { width: 42px; height: 42px; max-width: 42px; max-height: 42px; }
    .header-phone { font-size: 0.72rem; gap: 4px; }
    .header-phone-icon { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }

    .header-max-icon {
        width: 26px;
        height: 26px;
        max-width: 26px;
        max-height: 26px;
    }

    .messages-wrap { top: 76px; }

    .hero-text { padding: 36px 20px 20px; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; margin-bottom: 18px; }
    .hero-title { font-size: clamp(1.5rem, 7vw, 1.9rem); margin-bottom: 14px; }
    .hero-subtitle { font-size: 0.92rem; margin-bottom: 24px; }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 28px;
    }
    .hero-buttons .btn { width: 100%; padding: 13px 22px; }

    .hero-stats {
        gap: 18px;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    .stat-num { font-size: 1.25rem; }
    .stat-label { font-size: 0.72rem; }

    .hero-images {
        padding: 0 12px 20px;
        gap: 8px;
        margin-top: 0;
    }
    .hero-image,
    .hero-image-1,
    .hero-image-2 {
        height: 120px;
        min-height: 120px;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Вторая картинка — ПОДНЯТА внутри рамки */
    .hero-image-2 img {
        object-position: center 80%;
    }

    .featured, .services, .catalog { padding: 44px 0 52px; }
    .section-title { font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
    .featured-head { align-items: flex-start; gap: 10px; }
    .featured-link { font-size: 0.85rem; }

    .cards, .featured-grid, .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .card-body, .featured-body { padding: 12px; }
    .card-title, .featured-name { font-size: 0.85rem; }
    .card-specs { display: none; }
    .price-value { font-size: 1rem; }
    .price-unit { font-size: 0.7rem; }

    .modal { padding: 24px 18px; max-width: 100%; border-radius: 16px; }
    .modal-title { font-size: 1.1rem; padding-right: 30px; }
    .modal-description { font-size: 0.85rem; margin-bottom: 20px; }
    .form-input { padding: 12px 14px; font-size: 0.9rem; }
    .btn-full { padding: 13px 22px; font-size: 0.92rem; }
    .checkbox-label { font-size: 0.78rem; }

    .service-card { padding: 18px; }
    .service-avatar { width: 40px; height: 40px; font-size: 0.95rem; }
    .service-text { font-size: 0.85rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 36px 18px 20px; }
    .footer-title { font-size: 0.88rem; }
    .footer-col p { font-size: 0.8rem; }
    .footer-bottom {
        font-size: 0.72rem;
        padding: 18px 14px;
        flex-direction: column;
        text-align: center;
    }

    .privacy { padding: 36px 0 52px; }
    .privacy-content { padding: 24px 18px; }
    .privacy-content h2 { font-size: 1.05rem; }
    .privacy-content p, .privacy-content ul { font-size: 0.88rem; }
}

/* ---------- Маленькие телефоны (≤400px) ---------- */
@media (max-width: 400px) {
    .container { padding: 0 12px; }

    .header-inner { height: 58px; gap: 6px; }
    .logo { font-size: 0.75rem; gap: 6px; }
    .logo-icon { width: 32px; height: 32px; max-width: 32px; max-height: 32px; }
    .header-phone { font-size: 0.62rem; gap: 3px; }
    .header-phone-icon { width: 12px !important; height: 12px !important; max-width: 12px !important; max-height: 12px !important; }

    .header-max-icon {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
    }

    .hero-text { padding: 28px 16px 16px; }
    .hero-title { font-size: 1.4rem; margin-bottom: 12px; }
    .hero-subtitle { font-size: 0.88rem; margin-bottom: 20px; }
    .hero-buttons { margin-bottom: 22px; }
    .hero-buttons .btn { padding: 12px 20px; font-size: 0.9rem; }

    .hero-stats {
        gap: 12px;
        margin-bottom: 16px;
    }
    .stat-num { font-size: 1.1rem; }
    .stat-label { font-size: 0.68rem; }

    .hero-images {
        padding: 0 10px 16px;
        gap: 6px;
    }
    .hero-image,
    .hero-image-1,
    .hero-image-2 {
        height: 95px;
        min-height: 95px;
        border-radius: 6px;
        overflow: hidden;
    }

    /* Вторая картинка — ПОДНЯТА СИЛЬНО внутри рамки */
    .hero-image-2 img {
        object-position: center 90%;
    }

    .featured, .services, .catalog { padding: 36px 0 44px; }
    .cards, .featured-grid, .services-grid { grid-template-columns: 1fr; gap: 10px; }
    .modal { padding: 20px 14px; }
}

/* ============================================================
   СЕКЦИЯ «ОКАЗАННЫЕ УСЛУГИ» — КНОПКА «ВСЕ РАБОТЫ»
   ============================================================ */
.services-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.services-cta .btn {
    padding: 16px 48px;
}

/* ============================================================
   СТРАНИЦА «НАШИ РАБОТЫ»
   ============================================================ */
.portfolio {
    padding: 48px 0 100px;
    background: var(--bg-soft);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 20px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Адаптив */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .services-cta {
        margin-top: 32px;
    }
}

@media (max-width: 600px) {
    .portfolio {
        padding: 32px 0 60px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .portfolio-caption {
        font-size: 0.8rem;
        padding: 14px 12px 10px;
    }

    .services-cta {
        margin-top: 28px;
    }

    .services-cta .btn {
        width: 100%;
        padding: 14px 24px;
    }
}