/* ============================================
   RESET & VARIABLES
   ============================================ */

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

:root {
    /* Colors */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 50px 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

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

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

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

.btn--outline:hover {
    background: var(--primary-color);
    color: white;
}

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

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

.btn--large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.logo__icon svg {
    width: 28px;
    height: 28px;
}

.header__nav {
    display: flex;
    gap: 25px;
}

.header__nav a {
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

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

.header__contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__phone {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    white-space: nowrap;
}

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

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    padding: 30px;
    z-index: 1001;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 60px;
}

.mobile-menu__nav a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu__phone {
    display: block;
    margin-top: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 140px 0 80px;
    background: var(--bg-gradient-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature__icon {
    width: 24px;
    height: 24px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.feature__text {
    font-weight: 500;
    color: var(--text-gray);
}

.hero__cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero__image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 0.8s ease 0.3s backwards;
}

.hero__image-placeholder {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero__image-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */

section {
    padding: var(--section-padding);
}

.section__title {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: white;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about__card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.about__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.about__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about__card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about__card p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background: var(--bg-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service__card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service__image {
    height: 200px;
    background: var(--bg-gradient-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service__card h3 {
    padding: 25px 25px 10px;
    margin-bottom: 10px;
}

.service__card > p {
    padding: 0 25px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.service__list {
    list-style: none;
    padding: 0 25px;
    margin-bottom: 20px;
}

.service__list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
}

.service__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.service__price {
    padding: 0 25px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: auto;
}

.service__card .btn {
    margin: 0 25px 25px;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio {
    background: white;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio__item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.portfolio__item--hidden,
.portfolio__item--hidden-2 {
    display: none;
}

.portfolio__item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio__item:hover .portfolio__overlay {
    transform: translateY(0);
}

.portfolio__overlay h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.portfolio__overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.portfolio__button-wrapper {
    text-align: center;
}

#showMoreBtn {
    min-width: 250px;
}

#portfolioCounter {
    font-weight: 600;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process {
    background: var(--bg-light);
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.process__step {
    text-align: center;
    position: relative;
}

.process__number {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.process__step h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.process__step p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */

.reviews {
    background: white;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review__card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.review__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review__rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review__text {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.review__author strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.review__author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   QUIZ SECTION
   ============================================ */

.quiz {
    background: var(--bg-gradient-light);
}

.quiz__wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

/* Progress Bar */
.quiz__progress {
    margin-bottom: 40px;
    position: relative;
}

.quiz__progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.quiz__progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 25%;
    background: var(--bg-gradient);
    transition: width 0.4s ease;
}

.quiz__progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: var(--text-gray);
}

/* Steps */
.quiz__step {
    display: none;
}

.quiz__step--active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.quiz__step-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Options Grid */
.quiz__options {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.quiz__options--grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.quiz__option {
    background: var(--bg-light);
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.quiz__option:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quiz__option.selected {
    border-color: var(--primary-color);
    background: var(--bg-gradient-light);
}

.quiz__option-image {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.quiz__option-image svg {
    width: 100%;
    height: 100%;
}

.quiz__option h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.quiz__option-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* Form */
.quiz__form {
    margin-bottom: 30px;
}

.quiz__form-group {
    margin-bottom: 20px;
}

.quiz__form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.quiz__form-group input,
.quiz__form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.quiz__form-group input:focus,
.quiz__form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Colors */
.quiz__colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.quiz__color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.quiz__color:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.quiz__color.selected {
    border-color: var(--primary-color);
}

.quiz__color.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.quiz__color-name {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-gray);
}

/* Additions (Gates & Doors) */
.quiz__additions {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.quiz__addition-group {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
}

.quiz__checkbox-group {
    margin-bottom: 15px;
}

.quiz__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.quiz__checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.quiz__addition-options {
    margin-top: 15px;
}

.quiz__addition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.btn-remove {
    width: 32px;
    height: 32px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-remove:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.quiz__door-type {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Summary */
.quiz__summary {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.quiz__summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.quiz__summary-item:last-child {
    border-bottom: none;
}

.quiz__summary-label {
    font-weight: 600;
    color: var(--text-dark);
}

.quiz__summary-value {
    color: var(--text-gray);
    text-align: right;
}

/* Buttons */
.quiz__buttons {
    display: flex;
    gap: 15px;
}

.quiz__buttons .btn {
    flex: 1;
}

/* Success */
.quiz__success {
    text-align: center;
    padding: 40px 20px;
}

.quiz__success .success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}

.quiz__success h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.quiz__success p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: var(--bg-gradient);
    color: white;
    text-align: center;
}

.cta__content h2 {
    margin-bottom: 15px;
}

.cta__content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
    background: var(--bg-light);
}

.faq__wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faq__item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.faq__question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    user-select: none;
}

.faq__question:hover {
    background: var(--bg-light);
}

.faq__question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.faq__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient-light);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
    background: var(--bg-gradient);
    color: white;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.active .faq__answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq__answer p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   CONTACTS SECTION
   ============================================ */

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

.contacts__wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.contacts__left {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contacts__subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contacts__benefits {
    margin-bottom: 40px;
}

.benefit__item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.benefit__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.benefit__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit__content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.benefit__content p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.contacts__cta {
    background: var(--bg-gradient-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.cta__text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta__text strong {
    color: var(--primary-color);
}

.contacts__right {
    position: sticky;
    top: 100px;
}

.contacts__card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--bg-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.contact__item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.contact__item:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.contact__icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__details h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact__link {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

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

.contact__note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.contact__details p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.contact__social {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social__title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.social__links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social__link {
    width: 45px;
    height: 45px;
    background: var(--bg-gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social__link:hover {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */

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

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer__text p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer__phone a {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

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

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal__content h3 {
    margin-bottom: 10px;
}

.modal__content > p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: white;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: #94a3b8;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form__group input.error,
.form__group textarea.error {
    border-color: #ef4444;
}

.form__error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 18px;
}

.form__privacy {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

.form__counter {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
}

.form__button-wrapper {
    margin-top: 10px;
    margin-bottom: 15px;
}

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

.form__success {
    text-align: center;
}

.success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}

.form__success h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        order: -1;
    }
    
    .contacts__wrapper {
        grid-template-columns: 1fr;
    }
    
    .contacts__right {
        position: relative;
        top: 0;
    }
    
    .header__nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header__inner {
        padding: 15px 0;
    }
    
    .header__contact .btn {
        display: none;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .hero__features {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero__cta {
        flex-direction: column;
    }
    
    .hero__cta .btn {
        width: 100%;
    }
    
    .services__grid,
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
    }
    
    .process__timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .reviews__grid {
        grid-template-columns: 1fr;
    }
    
    .quiz__wrapper {
        padding: 25px 20px;
    }
    
    .quiz__step-title {
        font-size: 1.5rem;
    }
    
    .quiz__options--grid {
        grid-template-columns: 1fr;
    }
    
    .quiz__colors {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .quiz__color {
        width: 45px;
        height: 45px;
    }
    
    .quiz__buttons {
        flex-direction: column;
    }
    
    .quiz__addition-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .quiz__door-type {
        width: 100%;
    }
    
    .faq__question {
        padding: 20px 20px;
    }
    
    .faq__question h3 {
        font-size: 1rem;
    }
    
    .faq__icon {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
    
    .faq__item.active .faq__answer {
        padding: 0 20px 20px;
    }
    
    .contacts__left,
    .contacts__card {
        padding: 25px;
    }
    
    .contacts__subtitle {
        font-size: 1.5rem;
    }
    
    .benefit__item {
        gap: 15px;
    }
    
    .benefit__icon {
        font-size: 2rem;
    }
    
    .contact__link {
        font-size: 1.1rem;
    }
    
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal__content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn--large {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .header__inner {
        padding: 10px 0;
    }
    
    .header__logo a {
        font-size: 0.95rem;
        gap: 6px;
    }
    
    .logo__icon svg {
        width: 22px;
        height: 22px;
    }
    
    .header__phone {
        font-size: 0.85rem;
    }
    
    .burger {
        width: 28px;
        height: 28px;
    }
    
    .burger span {
        height: 2px;
    }
    
    .service__card h3 {
        font-size: 1.3rem;
    }
    
    .service__price {
        font-size: 1.3rem;
    }
    
    .process__number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 3001;
    animation: lightboxZoom 0.3s ease;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox__close:hover {
    transform: rotate(90deg);
    background: var(--primary-color);
    color: white;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .lightbox__close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox__content {
        max-width: 95%;
    }
}