:root {
    --primary: #45818E;
    --primary-hover: #a2c0c6;
    --primary-light: #a2c0c6;
    --primary-shadow: rgba(69, 129, 142, 0.2);
    --bg-main: #f4f7f5;
    --bg-card: #ffffff;
    --text-dark: #091e16;
    --text-muted: #4b5f56;
    --border-color: #e1e9e5;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-card);
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title span {
    color: var(--primary);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 40px;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    padding: 12px 28px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(162, 192, 198, 0.25);
}

.btn-secondary.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-left-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i,
.logo span {
    color: var(--primary);
}

.logo small {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.header-phone-top {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    background-color: rgba(162, 192, 198, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(69, 129, 142, 0.15);
}

.header-phone-top:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary);
}

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f7f4 0%, #e1ebe6 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: flex;
    gap: 48px;
    align-items: center;
}

.hero-content {
    flex: 1 1 100%;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: rgba(162, 192, 198, 0.35);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin: 0 0 18px 0;
    max-width: 700px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.55;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.hero-toggle-containers {
    max-width: 700px;
    margin-top: 20px;
}

.toggle-text-block {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.toggle-text-block.active {
    max-height: 900px;
}

.toggle-text-content {
    background-color: rgba(162, 192, 198, 0.25);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 16px 16px 16px;
    margin-top: 16px;
}

.toggle-text-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-text-content h5 i {
    color: var(--primary);
}

.toggle-text-content p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.toggle-text-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toggle-text-content ul li {
    padding: 4px 0 4px 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2345818E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") left center no-repeat;
    background-size: 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 14px;
}

.hero-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.hero-contact-link i {
    color: var(--primary);
    font-size: 16px;
}

.hero-contact-link:hover {
    color: var(--primary);
}

.services-tabs-wrap {
    position: relative;
}

.services-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.services-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 19px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.tab-btn:hover {
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.tab-btn.active {
    background-color: rgba(162, 192, 198, 0.35);
    color: var(--primary);
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.tab-content.active {
    display: flex;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--bg-main);
    overflow: hidden;
    transition: border-color 0.3s;
}

.accordion-item:hover {
    border-color: var(--primary);
}

.accordion-item.active {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 4px 20px rgba(69, 129, 142, 0.06);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.accordion-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.arrow-icon {
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.accordion-item.active .arrow-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.accordion-item.active .accordion-body {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border-color);
}

.accordion-body p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.calc-wrapper {
    display: flex;
    gap: 40px;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.calc-inputs {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-labels label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.calc-count {
    background-color: rgba(162, 192, 198, 0.4);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 700;
}

.calc-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 6px;
    outline: none;
}

.calc-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px var(--primary-shadow);
}

.calc-group input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.calc-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.calc-result {
    flex: 1 1 40%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.calc-tariff-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 4px 0 12px;
}

.calc-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    white-space: nowrap;
}

.calc-price span:last-child {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.calc-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.calc-result .btn-primary {
    margin-top: auto;
}

.calc-extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.calc-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-main);
    transition: var(--transition);
    user-select: none;
}

.calc-extra:hover {
    border-color: var(--primary);
    background-color: var(--bg-card);
}

.calc-extra input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.calc-extra input[type="checkbox"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.footer {
    background-color: var(--text-dark);
    color: #94a3b8;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 30, 22, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 40px 32px;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 8px;
}

.modal-subtext {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.modal-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.modal-action-btn i {
    font-size: 24px;
    width: 30px;
    text-align: center;
    color: var(--primary);
    transition: var(--transition);
}

.modal-action-btn div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modal-action-btn span {
    font-size: 16px;
    font-weight: 700;
}

.modal-action-btn small {
    font-size: 13px;
    margin-top: 2px;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-action-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.modal-action-btn:hover i {
    color: #ffffff;
}

.modal-action-btn:hover small {
    color: rgba(255, 255, 255, 0.8);
}

.tabs-hint {
    display: none;
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tabs-hint i {
    color: var(--primary);
}

@media (max-width: 968px) {
    .hero-grid {
        flex-direction: column;
        gap: 36px;
    }

    .calc-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .calc-inputs,
    .calc-result {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-phone-top {
        font-size: 14px;
        padding: 5px 12px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-sub {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-secondary,
    .hero-buttons .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .calc-wrapper {
        padding: 24px 18px;
    }

    .calc-result {
        padding: 20px;
    }

    .calc-price {
        font-size: 28px;
    }

    .tabs-hint {
        display: flex;
    }

    .services-tabs {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 25px;
    }

    .logo {
        font-size: 18px;
    }

    .logo small {
        display: none;
    }

    .section {
        padding: 56px 0;
    }

    .calc-price {
        font-size: 24px;
    }

    .modal-content {
        padding: 32px 20px;
    }
}
.calc-result {
    position: sticky;
    bottom: 0;
}

@media (max-width: 768px) {
    .calc-result {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 0 -18px -24px;
        padding: 16px 18px;
        border-radius: 20px 20px 0 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -8px 24px rgba(9, 30, 22, 0.08);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: left;
    }

    .calc-tariff-name {
        display: none;
    }

    .calc-price {
        font-size: 22px;
        margin: 0;
        line-height: 1.1;
        text-align: left;
    }

    .calc-price span:last-child {
        font-size: 13px;
    }

    .calc-hint {
        display: none;
    }

    .calc-result .btn-primary {
        margin: 0;
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 14px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .calc-result {
        flex-wrap: wrap;
    }

    .calc-price {
        width: 100%;
    }

    .calc-result .btn-primary {
        width: 100%;
    }
}