/* RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f2f2f5;
    color: #111;
    overflow-x: hidden;
    line-height: 1.4;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 3;
}

/* Верхняя плашка */
.top-phone {
    background: #d32f2f;
    text-align: center;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-phone a {
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.2rem;
}
@media (max-width: 640px) {
    .top-phone a { font-size: 1rem; }
}

/* Хедер */
.header {
    background: white;
    padding: 15px 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}
.logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}
@media (max-width: 640px) {
    .logo-img {
        max-height: 32px;
    }
}
@media (max-width: 480px) {
    .logo-img {
        max-height: 28px;
    }
}
.header-city {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}
.mobile-call-btn {
    background: #d32f2f;
    border: 2px solid #111;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}
@media (min-width: 769px) {
    .mobile-call-btn { display: none; }
}
@media (max-width: 640px) {
    .header-city { font-size: 0.7rem; }
}

/* Canvas частиц */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ГЕРОЙ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ec 100%);
    overflow: hidden;
    z-index: 2;
}
.hero-bg-shape {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 50%;
    height: 80%;
    background: #e0e0e0;
    transform: translateX(-50%) rotate(6deg) skewX(-2deg);
    z-index: 0;
    opacity: 1;
}
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    z-index: 2;
}
.hero-left {
    flex: 1.2;
    min-width: 280px;
}
h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #111;
}
.in-red { color: #d32f2f; }
.folio-black, .black-text { color: #111; }
.hero-years {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 20px 0;
}
.big-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: #d32f2f;
    line-height: 1;
}
.years-text { font-size: 1.2rem; font-weight: 600; }
.hero-desc {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 30px;
    max-width: 500px;
}
.soft-red { color: #ff8a80; }
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn-glossy, .btn-outline-red, .hero-new-phone, .calc-order, .btn-block, .modal-form button {
    border-radius: 16px !important;
}
.btn-glossy {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border: none;
    padding: 12px 28px;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 10px 20px rgba(211,47,47,0.3);
    position: relative;
    overflow: hidden;
}
.btn-glossy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%);
    transform: rotate(25deg);
    transition: 0.3s;
    opacity: 0;
}
.btn-glossy:hover::after {
    opacity: 1;
    left: 100%;
}
.btn-glossy:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px rgba(211,47,47,0.5);
}
.btn-outline-red {
    background: transparent;
    border: 2px solid #d32f2f;
    padding: 10px 24px;
    font-weight: 700;
    color: #d32f2f;
    text-decoration: none;
    transition: 0.2s;
}
.btn-outline-red:hover {
    background: #d32f2f;
    color: white;
}
.hero-new-phone {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 24px;
    color: white;
    flex-wrap: nowrap;
    white-space: nowrap;
    line-height: 1.2;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .hero-new-phone {
        padding: 8px 16px;
        gap: 12px;
    }
    .hero-new-phone .new-badge { font-size: 0.75rem; }
    .hero-new-phone a { font-size: 1rem; }
}
@media (max-width: 640px) {
    .hero-new-phone {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 6px;
        padding: 8px 12px;
    }
}
.new-badge {
    background: #d32f2f;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
}
.hero-new-phone a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
}
.hero-right {
    flex: 0.8;
    perspective: 800px;
}
.hero-image-wrapper {
    position: relative;
    transform: rotateY(6deg) rotateX(4deg) translateZ(20px);
    transition: 0.3s;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.5);
}
.hero-image-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    background: #2c2c2c;
}
.image-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 80%);
    pointer-events: none;
}

/* Фигуры для параллакса */
.float-shape {
    position: absolute;
    background: rgba(211,47,47,0.2);
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}
.shape-a {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 5%;
    clip-path: polygon(25% 0%, 100% 25%, 75% 100%, 0% 75%);
    background: #d32f2f30;
}
.shape-b {
    width: 250px;
    height: 150px;
    top: 15%;
    right: -50px;
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 0% 80%);
    background: #e0e0e0;  /* светло-серый, чтобы был виден */
    opacity: 0.6;
}
.shape-c {
    width: 120px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    background: #d32f2f15;
    transform: skew(20deg) rotate(15deg);
}

/* Анимация для мобильных */
@media (max-width: 768px) {
    .shape-a {
        animation: floatMobileA 12s infinite alternate ease-in-out;
    }
    .shape-b {
        animation: floatMobileB 16s infinite alternate ease-in-out;
    }
    .shape-c {
        animation: floatMobileC 10s infinite alternate ease-in-out;
    }
    @keyframes floatMobileA {
        0% { transform: translate(0, 0) rotate(0deg); }
        100% { transform: translate(30px, -20px) rotate(8deg); }
    }
    @keyframes floatMobileB {
        0% { transform: translate(0, 0) rotate(0deg); }
        100% { transform: translate(-40px, 30px) rotate(-6deg); }
    }
    @keyframes floatMobileC {
        0% { transform: skew(20deg) rotate(15deg) translate(0, 0); }
        100% { transform: skew(20deg) rotate(15deg) translate(-20px, -20px); }
    }
}

/* ПРЕИМУЩЕСТВА */
.advantages {
    padding: 100px 0;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    margin-top: -30px;
    position: relative;
    z-index: 2;
}
.advantages h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
}
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.glossy-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.glossy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 50px -15px rgba(0,0,0,0.3);
    border-color: rgba(211,47,47,0.5);
}
/* Отключаем движение для формы */
.form-card.glossy-card:hover {
    transform: none;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
}
.glossy-reflection {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.glossy-card:hover .glossy-reflection {
    left: 100%;
}
.adv-number {
    font-size: 3rem;
    font-weight: 900;
    color: #d32f2f20;
    position: absolute;
    top: 20px;
    right: 20px;
}
.adv-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #d32f2f;
}
.adv-underline {
    width: 50px;
    height: 4px;
    background: #111;
    margin-top: 20px;
    border-radius: 2px;
}

/* КАЛЬКУЛЯТОР */
.calculator-section {
    padding: 80px 0;
    background: #f0f0f2;
}
.calculator-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.calculator-wrapper {
    display: flex;
    justify-content: center;
}
.calc-card {
    max-width: 650px;
    width: 100%;
    padding: 40px;
    transform: rotate(0.5deg) skewX(-0.5deg);
    transition: transform 0.2s;
}
.calc-card:hover {
    transform: rotate(0deg) skewX(0deg);
}
.calc-group {
    margin-bottom: 30px;
}
.calc-group label {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}
.calc-group label i {
    color: #d32f2f !important;  /* красные иконки */
    margin-right: 8px;
    font-size: 1.4rem;
    vertical-align: middle;
}
.range-black {
    width: 100%;
    accent-color: #111;
}
.range-red {
    width: 100%;
    accent-color: #d32f2f;
}
.radio-group input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #aaa;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    top: 2px;
    transition: 0.1s;
}
.radio-group input[type="radio"]:checked {
    border-color: #d32f2f;
    background-color: #d32f2f;
    box-shadow: inset 0 0 0 4px white;
}
.radio-group label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.calc-total {
    background: #1e1e2a;
    color: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 30px 0 20px;
}
.calc-total strong {
    font-size: 1.8rem;
    color: #d32f2f;
}
.calc-order {
    width: 100%;
}

/* ГАЛЕРЕЯ */
.gallery {
    padding: 80px 0;
    background: white;
}
.gallery h2 {
    font-size: 2.5rem;
    text-align: center;
}
.gallery-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 50px;
}
.gallery-item {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: 0.3s;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(211, 47, 47, 0.6);
    color: white;
    text-align: center;
    padding: 10px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(2px);
    transition: 0.2s;
}
.gallery-item:hover .gallery-caption {
    background: rgba(211, 47, 47, 0.95);
}

/* ФОРМА */
.form-section {
    padding: 100px 0;
    background: #f9f9fb;
    position: relative;
    overflow: hidden;
}
.form-bg-shape {
    position: absolute;
    left: -10%;
    top: 20%;
    width: 500px;
    height: 500px;
    background: #d32f2f10;
    clip-path: polygon(20% 0%, 80% 0%, 100% 30%, 80% 100%, 20% 100%, 0% 70%);
    z-index: 0;
}
.form-container {
    display: flex;
    gap: 30px;          /* уменьшено с 50px для компактности */
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    align-items: center;
}
@media (min-width: 769px) {
    .form-container {
        gap: 30px;
    }
    .form-text-block, .form-card {
        flex: 1;
        margin: 0;
    }
}
.form-text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.features-mini {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}
.feature-mini-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.feature-mini-icon {
    font-size: 42px;
    color: #d32f2f;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: 0.2s;
}
.feature-mini-item:hover .feature-mini-icon {
    filter: drop-shadow(0 0 8px rgba(211,47,47,0.6));
}
.icon-underline {
    width: 30px;
    height: 3px;
    background: #111;
    border-radius: 2px;
}
.feature-mini-item span {
    font-weight: 600;
    font-size: 1.1rem;
}
.form-phone-highlight {
    background: #ffebee;
    padding: 20px;
    border-radius: 40px;
    display: inline-block;
    text-align: center;
}
@media (max-width: 768px) {
    .form-phone-highlight {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
}
.normal-weight {
    font-weight: normal;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}
.phone-split {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 1.3rem;
    font-weight: 800;
}
.phone-code {
    color: #111;
}
.phone-number {
    color: #d32f2f;
}
.form-card {
    flex: 1;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: none; /* убираем любые transition для движения */
}
.form-card input {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.2s;
}
.form-card input:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.2);
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-block {
    width: 100%;
}

/* Конверты внутри формы */
.envelopes {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.envelope-icon {
    font-size: 2rem;
    color: #d32f2f;
    opacity: 0.6;
    transition: all 0.3s ease;
    animation: floatEnvelope 3s infinite alternate ease-in-out;
    display: inline-block;
}
.envelope-icon:nth-child(2) {
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}
.envelope-icon:nth-child(3) {
    animation-delay: 1s;
    animation-duration: 4s;
}
@keyframes floatEnvelope {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(3deg); }
}
.envelope-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #b71c1c;
}

/* ОТЗЫВЫ */
.reviews {
    padding: 80px 0;
    background: #ffffff;
}
.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.review-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
}
.review-avatar {
    width: 90px;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    flex-shrink: 0;
    background-color: #ccc;
}
.tilted-avatar {
    transform: rotate(2deg);
    transition: 0.2s;
}
.tilted-avatar:hover {
    transform: rotate(0deg) scale(1.02);
}
.review-content {
    flex: 1;
}
.review-stars {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.review-content p {
    font-style: normal;
    margin-bottom: 12px;
    line-height: 1.4;
}
.review-content cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
}
.review-content cite span {
    font-weight: normal;
    color: #999;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: #f5f5f7;
}
.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}
.faq-question span {
    flex: 1;
}
.faq-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    cursor: pointer;
    transition: 0.2s;
}
.faq-toggle:hover {
    background: #d32f2f;
    color: white;
}
.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.faq-answer p {
    padding: 20px 0;
    line-height: 1.5;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: #d32f2f;
    color: white;
}

/* ФУТЕР */
.footer {
    background: #0a0a0a;
    color: #aaa;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 800;
}
.footer-in {
    color: #d32f2f;
}
.footer-folio {
    color: white;
}
.footer-phone a {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}
.footer a {
    color: #ccc;
    text-decoration: none;
}
.footer a:hover {
    color: #d32f2f;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 0.8rem;
}

/* МОДАЛКА */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-content {
    max-width: 450px;
    width: 90%;
    padding: 40px;
    border-radius: 48px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
}
.modal-form input {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
}
.modal-form input:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.2);
}
.modal-form button {
    border-radius: 16px;
}

/* Уведомление (тост) */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    max-width: 350px;
    background: #fff;
    color: #111;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-left: 6px solid #d32f2f;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}
.notification-toast.success {
    border-left-color: #2e7d32;
}
.notification-toast.error {
    border-left-color: #d32f2f;
}
.notification-toast i {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 900px) {
    h1 { font-size: 2.8rem; }
    .hero-container { flex-direction: column; }
    .hero-right { margin-top: 30px; width: 80%; }
    .advantages h2 { font-size: 2rem; }
    .calc-card { transform: none; }
    .form-container { flex-direction: column; gap: 30px; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .review-card { flex-direction: column; align-items: center; text-align: center; }
    .review-avatar { width: 100px; height: 100px; }
    .feature-mini-item { flex-direction: column; text-align: center; }
    .icon-underline { margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .faq-question { font-size: 1rem; padding: 16px; }
}
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}