/* ==========================================================================
   УрюпинскПрочистка — прочистка канализации в Урюпинске
   ========================================================================== */

:root {
    --primary: #1d6fb8;
    --primary-dark: #175a96;
    --primary-light: #e8f2fb;
    --accent: #f59e0b;
    --dark: #12263a;
    --dark-2: #1a3a54;
    --gray: #5d6b78;
    --gray-light: #97a5b0;
    --bg: #f3f8fd;
    --white: #ffffff;
    --border: #dfe9f2;
    --shadow: 0 10px 30px rgba(29, 111, 184, 0.12);
    --shadow-lg: 0 20px 50px rgba(29, 111, 184, 0.18);
    --radius: 16px;
    --transition: 0.3s ease;
    --font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
}

.text--accent {
    color: var(--primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 11px 22px;
    font-size: 0.9rem;
}

.btn--lg {
    padding: 17px 38px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(18, 38, 58, 0.06);
    transition: var(--transition);
}

.header--scrolled {
    box-shadow: 0 10px 30px rgba(18, 38, 58, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    height: 80px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}

.logo i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1rem;
}

.logo--accent {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    transition: color var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.header__phone i {
    color: var(--primary);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 101;
}

.burger span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    padding: 190px 0 90px;
    background:
        radial-gradient(circle at 85% 20%, rgba(29, 111, 184, 0.12), transparent 45%),
        linear-gradient(160deg, #eef6fd 0%, #ffffff 60%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: 40%;
    width: 460px;
    height: 460px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='none' stroke='%231d6fb8' stroke-opacity='0.08' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='34' fill='none' stroke='%231d6fb8' stroke-opacity='0.08' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%231d6fb8' stroke-opacity='0.08' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
}

.hero__content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.stat__label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 6px;
}

/* ==========================================================================
   Section head
   ========================================================================== */

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
}

.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section__tag--light {
    color: #a9d0f0;
}

.section__title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.section__title--light {
    color: var(--white);
}

.section__subtitle {
    color: var(--gray);
    font-size: 1.05rem;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card__text {
    color: var(--gray);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ==========================================================================
   Methods
   ========================================================================== */

.methods {
    background: linear-gradient(160deg, #12263a 0%, #1a3a54 100%);
    position: relative;
    overflow: hidden;
}

.methods__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.method {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: var(--transition);
}

.method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.method__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent);
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.method__title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.method__text {
    color: #b8cde0;
    font-size: 0.92rem;
}

/* ==========================================================================
   Prices
   ========================================================================== */

.prices {
    background: var(--bg);
}

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

.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.price-card--featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.price-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.price-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.5rem;
}

.price-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-card__value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.price-card__text {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ==========================================================================
   Advantages
   ========================================================================== */

.advantages {
    background: var(--white);
}

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

.advantage {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
}

.advantage:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.advantage__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.advantage__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.advantage__text {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ==========================================================================
   How we work
   ========================================================================== */

.how {
    background: var(--bg);
}

.how__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 26px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.step:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.step__num {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 16px;
}

.step__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step__text {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews {
    background: var(--white);
}

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

.review {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.review:hover {
    box-shadow: var(--shadow);
}

.review__stars {
    color: var(--accent);
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.review__text {
    color: var(--dark);
    font-size: 0.98rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.review__name {
    display: block;
    font-weight: 700;
}

.review__role {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
}

/* ==========================================================================
   Contacts
   ========================================================================== */

.contacts {
    background: var(--bg);
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts__info .section__head {
    text-align: left;
    margin: 0 0 24px;
    max-width: none;
}

.contacts__text {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 460px;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacts__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contacts__list i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 1rem;
}

.contacts__list span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
}

.contacts__list a {
    font-weight: 700;
    color: var(--dark);
    transition: color var(--transition);
}

.contacts__list a:hover {
    color: var(--primary);
}

.contacts__list p {
    color: var(--dark);
    font-weight: 500;
}

/* Form */
.form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.form__title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.form__subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--bg);
    transition: border-color var(--transition);
    resize: vertical;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form__privacy {
    font-size: 0.8rem;
    color: var(--gray-light);
    text-align: center;
    margin-top: 14px;
}

.form__success {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form__success.show {
    display: block;
}

.form__success i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 14px;
}

.form__success h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.form__success p {
    color: var(--gray);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer .logo {
    color: var(--white);
}

.footer .logo i {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.footer__nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__nav a {
    color: #b8cde0;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--accent);
}

.footer__phone {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.footer__bottom {
    padding: 20px 0;
    text-align: center;
    color: #7a92a8;
    font-size: 0.85rem;
}

/* ==========================================================================
   Mobile call bar
   ========================================================================== */

.mobile-call {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(18, 38, 58, 0.08);
}

.mobile-call__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.mobile-call__btn--call {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-call__btn--cta {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 90;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .services__grid,
    .advantages__grid,
    .prices__grid,
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .methods__grid,
    .how__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 22px;
        box-shadow: -10px 0 30px rgba(18, 38, 58, 0.1);
        transition: right 0.4s ease;
        z-index: 99;
    }

    .nav--open {
        right: 0;
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .burger {
        display: flex;
    }

    .header__actions .header__phone,
    .header__actions .btn {
        display: none;
    }

    .hero {
        padding-top: 160px;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .mobile-call {
        display: grid;
    }

    body {
        padding-bottom: 74px;
    }

    .to-top {
        bottom: 92px;
    }
}

@media (max-width: 600px) {
    .services__grid,
    .advantages__grid,
    .prices__grid,
    .reviews__grid,
    .methods__grid,
    .how__grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }

    .contacts__list {
        gap: 14px;
    }

    .form {
        padding: 26px 20px;
    }
}