/* ===== СБРОС И ПЕРЕМЕННЫЕ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #124c89;
    --primary-dark: #0a2f55;
    --primary-light: #1e6bb5;
    --accent: #ffc071;
    --accent-dark: #e5a54b;
    --text: #2c3e50;
    --text-light: #5a6e7e;
    --text-muted: #95a5a6;
    --bg: #f8fafc;
    --white: #fff;
    --border: #e9ecef;
}

body {
    background: url('../img/fon.jpg') repeat #e1f0ff;
    font-family: 'Inter', 'Montserrat', verdana, arial, sans-serif;
    line-height: 2.6;
    color: var(--text);
    overflow-x: hidden;
    min-width: 320px;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0 60px;
}

/* ===== HEADER & HERO ===== */
.hero {
    position: relative;
    width: 100%;
    background: #1e2a3a;
    display: block;
    line-height: 0;
}

/* Картинка в потоке — задаёт реальную высоту шапки */
.hero-bg,
.hero picture,
.hero picture img,
.hero picture source {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    z-index: 1;
}

/* Контент поверх картинки */
.hero__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 0 0 40px;
    gap: 20px;
    pointer-events: none;
}

.hero__content > * {
    pointer-events: auto;
}

/* ===== LOGO ===== */
#logo {
    display: block;
    flex-shrink: 0;
    width: 240px;
    margin-top: -10px;
}

#logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* ===== SLOGAN ===== */
.slogan {
    flex-shrink: 1;
    min-width: 0;
    margin-top: 18px;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    text-align: left;
    line-height: 1.2;
}

.slogan p {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    text-align: left;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.slogan .phone {
    font-size: 20px;
    font-weight: 600;
    margin: 14px 0 6px;
    text-align: left;
    line-height: 1.4;
}

.slogan .phone i {
    margin-right: 8px;
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.slogan > i {
    font-size: 14px;
}

.slogan a {
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #ffc071;
    text-align: left;
}

.slogan a i {
    margin-right: 8px;
}

.slogan a:hover {
    color: #ffc071;
    border-bottom-color: #fff;
}

/* ===== АДАПТАЦИЯ: только меняем размеры, без сдвигов ===== */
@media (max-width: 1400px) {
    .hero__content { padding: 18px 0 0 35px; gap: 18px; }
    #logo { width: 200px; margin-top: -8px; }
    .slogan { margin-top: 15px; }
    .slogan p { font-size: 22px; }
    .slogan .phone { font-size: 18px; margin: 12px 0 5px; }
    .slogan .phone i { font-size: 14px; width: 16px; }
    .slogan a { font-size: 14px; }
}

@media (max-width: 1200px) {
    .hero__content { padding: 16px 0 0 30px; gap: 16px; }
    #logo { width: 170px; margin-top: -6px; }
    .slogan { margin-top: 13px; }
    .slogan p { font-size: 20px; margin: 0 0 7px 0; }
    .slogan .phone { font-size: 16px; margin: 10px 0 5px; }
    .slogan .phone i { font-size: 13px; width: 14px; margin-right: 6px; }
    .slogan a { font-size: 13px; }
}

@media (max-width: 1024px) {
    .hero__content { padding: 14px 0 0 25px; gap: 14px; }
    #logo { width: 140px; margin-top: -4px; }
    .slogan { margin-top: 11px; }
    .slogan p { font-size: 17px; margin: 0 0 6px 0; letter-spacing: 0.3px; }
    .slogan .phone { font-size: 14px; margin: 8px 0 4px; }
    .slogan .phone i { font-size: 11px; width: 12px; margin-right: 5px; }
    .slogan a { font-size: 11px; }
}

@media (max-width: 768px) {
    .hero__content { padding: 12px 0 0 20px; gap: 12px; }
    #logo { width: 110px; margin-top: -2px; }
    .slogan { margin-top: 9px; }
    .slogan p { font-size: 14px; margin: 0 0 5px 0; letter-spacing: 0.2px; }
    .slogan .phone { font-size: 12px; margin: 7px 0 3px; line-height: 1.3; }
    .slogan .phone i { font-size: 10px; width: 10px; margin-right: 4px; }
    .slogan a { font-size: 10px; }
}

@media (max-width: 480px) {
    .hero__content { padding: 10px 0 0 14px; gap: 10px; }
    #logo { width: 75px; margin-top: 2px; }
    .slogan { margin-top: 7px; }
    .slogan p { font-size: 11px; margin: 0 0 3px 0; letter-spacing: 0; line-height: 1.1; }
    .slogan .phone { font-size: 10px; margin: 5px 0 2px; line-height: 1.25; }
    .slogan .phone i { font-size: 8px; width: 8px; margin-right: 3px; }
    .slogan a { font-size: 8px; }
}

@media (max-width: 400px) {
    .hero__content { padding: 8px 0 0 10px; gap: 8px; }
    #logo { width: 60px; margin-top: 3px; }
    .slogan { margin-top: 5px; }
    .slogan p { font-size: 10px; margin: 0 0 2px 0; line-height: 1.08; }
    .slogan .phone { font-size: 9px; margin: 4px 0 1px; line-height: 1.2; }
    .slogan .phone i { font-size: 7px; width: 7px; margin-right: 2px; }
    .slogan a { font-size: 7px; }
}

@media (max-width: 360px) {
    .hero__content { padding: 6px 0 0 8px; gap: 6px; }
    #logo { width: 50px; margin-top: 3px; }
    .slogan { margin-top: 4px; }
    .slogan p { font-size: 9px; margin: 0 0 1px 0; line-height: 1.05; }
    .slogan .phone { font-size: 8px; margin: 3px 0 1px; line-height: 1.15; }
    .slogan a { font-size: 7px; }
}

/* ===== TITLE ===== */
.main-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 18px 20px;
    margin: 20px 0 0;
    border-radius: 60px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.text1 { font-size: 1.2rem; font-weight: 600; letter-spacing: 1px; }

/* ===== MENU ===== */
.main-menu {
    background: var(--white);
    border-radius: 28px;
    margin-top: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    overflow: hidden;
    width: 100%;
}

#main-menu {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#main-menu li {
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

#main-menu li:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transition: all 0.3s ease;
    border-radius: 4px;
}

#main-menu li:hover:before,
#main-menu li.active:before { width: 70%; }

#main-menu li a {
    display: block;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#main-menu li a i { margin-right: 10px; }

/* ===== MAIN CONTENT ===== */
.main-content {
    background: var(--white);
    border-radius: 32px;
    padding: 50px 70px;
    margin: 40px 0 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    position: relative;
    width: 100%;
    overflow-x: visible;
}

.main-content:after {
    content: '';
    display: block;
    background: url('/venv/site_vysota/img/zavod.png') no-repeat center/100% auto;
    padding-bottom: 22.83%;
    width: 100%;
    margin-top: 150px;
    opacity: 0.7;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 18px;
}

.h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 3px;
}

.intro-text {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--accent);
    display: inline-block;
}

.main-text, .second-text {
    font-size: 1.12rem;
    line-height: 1.9;
    padding: 30px 40px;
    border-radius: 28px;
}

.main-text {
    color: var(--text);
    background: var(--bg);
    margin-bottom: 35px;
    border-left: 6px solid var(--accent);
}

.second-text {
    color: var(--text);
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.content-wrapper { max-width: 100%; }

.skalolaz {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: auto;
    background: url('/venv/site_vysota/templates/left-men.png') no-repeat center/contain;
    z-index: 1000;
    opacity: 0.85;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skalolaz:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin: 40px 0;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
}

.service-image-wrapper { overflow: hidden; height: 240px; }

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .service-image { transform: scale(1.08); }

.service-info { padding: 25px; text-align: center; }

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-title a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
.service-title a:hover { color: var(--accent); }

.service-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 12px;
    line-height: 1.6;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--white);
    border-radius: 32px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e2a3a, #0f1a24);
}

.modal-header img { width: 100%; height: 100%; object-fit: cover; }

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover { background: var(--accent); color: var(--primary); transform: rotate(90deg); }

.modal-body { padding: 35px; }

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.modal-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
}

.modal-text { color: var(--text); line-height: 1.8; margin-bottom: 25px; font-size: 1rem; }

.modal-price {
    background: #fef9e6;
    padding: 18px 22px;
    border-radius: 20px;
    border-left: 4px solid var(--accent);
    margin-bottom: 25px;
}

.modal-price p { margin: 8px 0; color: var(--text-light); line-height: 1.6; }
.modal-price strong { color: var(--primary); font-size: 1.1rem; }

.modal-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.modal-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(18,76,137,0.4); color: white; }

/* ===== REVIEWS ===== */
.reviews-form-section {
    background: var(--white);
    border-radius: 32px;
    padding: 55px 70px;
    margin: 40px 0 50px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
    overflow-x: visible;
}

.form-title {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 18px;
}

.form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
}

.review-form { max-width: 900px; margin: 0 auto; }

.form-group { margin-bottom: 28px; }

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fefefe;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,192,113,0.2);
}

.rating-group { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 8px; }
.rating-group input { display: none; }

.rating-group label {
    font-size: 42px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0;
    line-height: 1;
}

.rating-group label:hover,
.rating-group label:hover ~ label,
.rating-group input:checked ~ label {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(255,192,113,0.4);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(18,76,137,0.3); }

.success-message, .error-message { display: none; padding: 16px; border-radius: 20px; margin-top: 25px; text-align: center; }
.success-message { background: #d1fae5; color: #065f46; }
.error-message { background: #fee2e2; color: #991b1b; }

/* ===== REVIEWS PAGE ===== */
.reviews-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, var(--bg), var(--white));
    padding: 25px 35px;
    border-radius: 28px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.stats-item { text-align: center; flex: 1; min-width: 120px; }
.stats-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stats-label { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; }
.stats-rating { display: flex; justify-content: center; gap: 5px; margin-top: 5px; }
.stats-rating i { font-size: 1.2rem; color: var(--accent); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.review-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    padding: 25px;
}

.review-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info { flex: 1; }
.reviewer-name { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.reviewer-company { font-size: 0.85rem; color: var(--accent); }
.review-rating { display: flex; gap: 3px; }
.review-rating i { font-size: 1rem; color: #ddd; }
.review-rating i.filled { color: var(--accent); }
.review-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.review-text { color: var(--text); line-height: 1.7; margin: 15px 0; font-size: 0.95rem; }

.review-footer { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 10px; }

.review-helpful {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-helpful i { cursor: pointer; transition: all 0.3s; }
.review-helpful i:hover { color: var(--accent); }

.add-review-section { background: var(--bg); border-radius: 28px; padding: 40px; margin-top: 50px; }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
}

.empty-reviews { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-reviews i { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }

/* ===== COMPANY PAGE ===== */
.company-content { display: flex; flex-direction: column; gap: 2rem; }

.company-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.company-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.company-card.reverse { flex-direction: row-reverse; }

.company-text {
    flex: 2;
    min-width: 220px;
    font-size: 1rem;
    line-height: 1.55;
    color: #1e2a3e;
}

.company-text strong { color: #000080; }

.company-image { flex: 1; min-width: 160px; text-align: center; }

.company-image img {
    max-width: 100%;
    width: 280px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.company-image img:hover { transform: scale(1.02); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }

.company-highlight {
    background: linear-gradient(135deg, var(--bg), var(--white));
    padding: 30px 35px;
    border-radius: 28px;
    margin: 30px 0;
    border-left: 5px solid var(--accent);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.company-highlight strong { color: var(--primary); }

.highlight-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #fafcff 100%);
    border-left: 5px solid #000080;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a2a3a;
}

.highlight-box strong { color: #000080; }

.company-footer { text-align: center; margin-top: 1.5rem; margin-bottom: 1rem; }

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000080;
    color: white !important;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,128,0.2);
}

.contact-link i { font-size: 1.2rem; }
.contact-link:hover { background: #0000b3; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,128,0.25); }

/* ===== PRICE LIST ===== */
.price-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    background: var(--bg);
    border: 2px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(18,76,137,0.3);
}

.price-sections-container { display: flex; flex-direction: column; gap: 30px; }

.price-section {
    background: var(--white);
    border-radius: 28px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.price-section:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.price-section.hidden { display: none; }

.price-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.price-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-title i { color: var(--accent); font-size: 1.6rem; }

.toggle-icon {
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-icon i { font-size: 1.2rem; color: var(--primary); transition: transform 0.3s ease; }
.price-section-header:hover .toggle-icon { background: var(--accent); }
.price-section-header:hover .toggle-icon i { color: white; }

.price-section-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.price-section-content.collapsed { max-height: 0 !important; padding: 0; margin: 0; overflow: hidden; }

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 20px;
    overflow: visible;
    margin: 20px 0 10px;
}

.price-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.price-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover { background: var(--bg); }
.price-table .service-name { font-weight: 500; }
.price-table .price-value { font-weight: 600; color: var(--primary); white-space: nowrap; }

.price-note {
    background: #fef9e6;
    padding: 15px 20px;
    border-radius: 16px;
    margin: 15px 0 5px;
    border-left: 4px solid var(--accent);
}

.price-note p { margin: 5px 0; color: var(--text-light); font-size: 0.9rem; line-height: 1.5; }
.price-note strong { color: var(--primary); }

.section-badge {
    display: inline-block;
    background: var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 15px;
}

/* ===== CONTACTS ===== */
.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.contact-description {
    background: var(--bg);
    padding: 25px 30px;
    border-radius: 24px;
    margin: 25px 0;
    border-left: 5px solid var(--accent);
}

.contact-description p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--text); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin: 40px 0;
}

.contact-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i { font-size: 32px; color: var(--accent); }

.contact-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.contact-card p { color: var(--text-light); line-height: 1.6; margin: 8px 0; }
.contact-card a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
.contact-card a:hover { color: var(--accent); }

.work-hours { background: #fef9e6; border-radius: 20px; padding: 20px; margin-top: 15px; text-align: left; }
.work-hours p { margin: 8px 0; display: flex; justify-content: space-between; flex-wrap: wrap; }
.work-hours .day { font-weight: 600; color: var(--primary); }
.work-hours .time { color: var(--text-light); }
.work-hours .weekend { color: var(--accent-dark); }

.map-container {
    margin: 40px 0 30px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.map-container iframe { width: 100%; height: 450px; border: none; display: block; max-width: 100%; }

.feedback-section {
    background: var(--bg);
    border-radius: 28px;
    padding: 35px;
    margin-top: 40px;
    text-align: center;
}

.feedback-section h3 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.feedback-btn.phone { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.feedback-btn.email { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.feedback-btn.phone:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(18,76,137,0.4); }
.feedback-btn.email:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.feedback-btn i { font-size: 1.2rem; }

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    width: 100%;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--accent));
}

.footer { padding: 50px 40px; color: var(--white); position: relative; z-index: 1; text-align: center; }
.footer p { margin: 0; font-size: 1.2rem; letter-spacing: 0.5px; }
.footer i { margin-right: 12px; color: var(--accent); }
.footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

.footer:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 30px;
    width: 171px;
    height: 133px;
    background: url('/venv/site_vysota/img/strops.png') no-repeat;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 10px; }

/* ===== MEDIA QUERIES ===== */
@media (min-width: 1920px) {
    .container { padding: 0 100px; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 40px; }
    .service-image-wrapper { height: 280px; }
    .service-title { font-size: 1.5rem; }
    .price-title { font-size: 1.8rem; }
    .price-table th, .price-table td { padding: 16px 25px; font-size: 1rem; }
    .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}


@media (max-width: 1200px) {
    .container { padding: 0 40px; }
}

@media (max-width: 992px) {
    #main-menu li a { padding: 14px 16px; font-size: 0.85rem; white-space: normal; }
    .skalolaz { display: none; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .text1 { font-size: 0.95rem; }
    #main-menu { flex-direction: column; }
    #main-menu li a { text-align: center; padding: 14px 20px; font-size: 0.9rem; }
    #main-menu li:before { display: none; }
    .main-content { padding: 30px 25px; }
    .h1 { font-size: 1.9rem; text-align: center; }
    .h1:after { left: 50%; transform: translateX(-50%); }
    .main-text, .second-text { padding: 20px; font-size: 0.98rem; }
    .intro-text { font-size: 1.3rem; }
    .reviews-form-section { padding: 30px 25px; }
    .form-title { font-size: 1.7rem; }
    .rating-group label { font-size: 32px; }
    .footer { padding: 35px 20px; }
    .footer p { font-size: 0.9rem; }
    .footer:after { display: none; }
    .services-grid { grid-template-columns: 1fr; gap: 25px; }
    .service-image-wrapper { height: 200px; }
    .service-info { padding: 20px; }
    .service-title { font-size: 1.2rem; }
    .modal-header { height: 180px; }
    .modal-title { font-size: 1.4rem; }
    .modal-body { padding: 25px; }
    .modal-text { font-size: 0.95rem; }
    .modal-price p { font-size: 0.9rem; }
    .price-filters { gap: 8px; }
    .filter-btn { padding: 6px 16px; font-size: 0.85rem; }
    .price-section { padding: 18px 20px; }
    .price-title { font-size: 1.2rem; }
    .price-title i { font-size: 1.3rem; }
    .price-table th, .price-table td { padding: 10px 12px; font-size: 0.85rem; }
    .price-table { display: block; overflow-x: auto; }
    .reviews-stats { flex-direction: column; text-align: center; }
    .stats-number { font-size: 2rem; }
    .reviews-grid { grid-template-columns: 1fr; gap: 20px; }
    .review-card { padding: 20px; }
    .add-review-section { padding: 25px; }
    .section-title { font-size: 1.3rem; }
    .company-card { flex-direction: column !important; text-align: center; padding: 1.2rem; }
    .company-image img { width: 240px; }
    .highlight-box { text-align: center; border-left: none; border-top: 4px solid #000080; }
    .contact-link { padding: 10px 20px; font-size: 0.9rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 25px; }
    .contact-card { padding: 25px; }
    .map-container iframe { height: 300px; }
    .feedback-section { padding: 25px; }
    .feedback-buttons { flex-direction: column; align-items: center; }
    .feedback-btn { width: 100%; justify-content: center; }
    .company-name { font-size: 1.3rem; }
    .contact-description p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .main-title { padding: 12px 15px; margin: 15px 0 0; border-radius: 40px; }
    .text1 { font-size: 0.85rem; }
}
/* ===== АДАПТИВНАЯ ТИПОГРАФИКА ===== */
/* Базовые размеры для Full HD (1920px+) */
html {
    font-size: 16px;
}

body {
    font-size: 1rem;
    line-height: 1.6;
}

/* Для больших экранов (1920px и выше) */
@media (min-width: 1920px) {
    html { font-size: 18px; }
    .container { max-width: 1600px; margin: 0 auto; }
    .main-content { padding: 60px 80px; }
    .main-text, .second-text { font-size: 1.1rem; padding: 35px 45px; }
    .h1 { font-size: 2.8rem; }
    .service-title { font-size: 1.4rem; }
}

/* Для экранов 1600-1919px */
@media (min-width: 1600px) and (max-width: 1919px) {
    html { font-size: 16px; }
    .container { padding: 0 80px; }
    .main-content { padding: 50px 65px; }
    .main-text, .second-text { font-size: 1.05rem; padding: 30px 40px; }
}

/* Для экранов 1366-1599px (стандартный ноутбук) */
@media (min-width: 1366px) and (max-width: 1599px) {
    html { font-size: 15px; }
    .container { padding: 0 50px; }
    .main-content { padding: 40px 50px; }
    .main-text, .second-text { font-size: 1rem; padding: 25px 35px; }
    .h1 { font-size: 2.2rem; }
    .services-grid { gap: 30px; }
}

/* Для экранов 1280-1365px */
@media (min-width: 1280px) and (max-width: 1365px) {
    html { font-size: 14px; }
    .container { padding: 0 40px; }
    .main-content { padding: 35px 45px; }
    .main-text, .second-text { font-size: 0.95rem; padding: 22px 30px; }
    .h1 { font-size: 2rem; }
    .services-grid { gap: 25px; }
    .service-card .service-image-wrapper { height: 160px; }
}

/* Для экранов 1024-1279px (маленькие ноутбуки) */
@media (min-width: 1024px) and (max-width: 1279px) {
    html { font-size: 13px; }
    .container { padding: 0 30px; }
    .main-content { padding: 30px 35px; margin: 30px 0 25px; }
    .main-text, .second-text { font-size: 0.9rem; padding: 20px 25px; line-height: 1.7; }
    .h1 { font-size: 1.8rem; margin-bottom: 25px; }
    .services-grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .service-card .service-image-wrapper { height: 140px; }
    .service-title { font-size: 1.1rem; }
    .service-info { padding: 15px; }
}

/* Для планшетов 768-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    html { font-size: 14px; }
    .container { padding: 0 25px; }
    .main-content { padding: 25px 30px; margin: 25px 0 20px; }
    .main-text, .second-text { font-size: 0.9rem; padding: 18px 22px; line-height: 1.65; }
    .h1 { font-size: 1.7rem; text-align: center; }
    .h1:after { left: 50%; transform: translateX(-50%); }
    .services-grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .service-card .service-image-wrapper { height: 130px; }
}

/* Для мобильных 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    html { font-size: 13px; }
    .container { padding: 0 15px; }
    .main-content { padding: 20px 20px; margin: 20px 0 15px; border-radius: 24px; }
    .main-text, .second-text { font-size: 0.85rem; padding: 15px 18px; line-height: 1.6; }
    .h1 { font-size: 1.5rem; margin-bottom: 20px; }
    .services-grid { gap: 15px; grid-template-columns: 1fr; }
    .service-card .service-image-wrapper { height: 120px; }
}

/* Для очень маленьких экранов до 480px */
@media (max-width: 479px) {
    html { font-size: 12px; }
    .container { padding: 0 12px; }
    .main-content { padding: 15px 15px; margin: 15px 0 10px; border-radius: 20px; }
    .main-text, .second-text { font-size: 0.8rem; padding: 12px 15px; line-height: 1.55; }
    .h1 { font-size: 1.3rem; margin-bottom: 15px; }
    .services-grid { gap: 12px; grid-template-columns: 1fr; }
    .service-card .service-image-wrapper { height: 100px; }
    .service-title { font-size: 1rem; }
    .service-info { padding: 10px; }
}

/* Дополнительно: фикс для длинных слов и переносов */
.main-text p, .second-text p, .service-desc, .review-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Фикс для таблиц на мобильных */
@media (max-width: 768px) {
    .price-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .price-table td, .price-table th {
        white-space: normal;
        min-width: 120px;
    }
}
