* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f2e7;
    font-family: 'Quicksand', sans-serif;
    color: #4e3e33;
    line-height: 1.6;
}

.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 30px;
    background-color: rgba(255, 251, 245, 0.6);
    box-shadow: 0 0 30px rgba(140, 90, 60, 0.08);
}

.header {
    background: linear-gradient(145deg, #e7d6c5 0%, #d6bca8 100%);
    padding: 25px 35px;
    border-radius: 48px 48px 24px 24px;
    box-shadow: 0 10px 20px rgba(110, 70, 45, 0.1);
    margin-bottom: 35px;
    border: 1px solid #f0e1d2;
}

.header-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fcf6ed;
    padding: 8px;
    border: 3px solid #f0e1d2;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 4.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #3f2f26;
    text-shadow: 2px 2px 0 #ecdac0, 4px 4px 0 rgba(160, 110, 70, 0.1);
    margin-bottom: 10px;
    line-height: 1.1;
}

.subhead {
    font-size: 1.3rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: #5d4337;
    border-left: 5px solid #a67b5b;
    padding-left: 20px;
    margin-top: 8px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 20px;
    border-bottom: 2px solid #dcc9b6;
    padding-bottom: 15px;
}

.tab-button {
    background: #e3d1c0;
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #3e2f26;
    border-radius: 40px 40px 20px 20px;
    cursor: pointer;
    transition: 0.25s;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 8px #d2b9a4;
    border: 1px solid #efdfcf;
}

.tab-button:hover {
    background: #d2b69b;
    color: #2b1e17;
    transform: translateY(-3px);
    box-shadow: 0 10px 18px #bb9d86;
}

.tab-button.active {
    background: #b48d72;
    color: #fef7ed;
    border-color: #9c755b;
    box-shadow: 0 6px 0 #6f4f3b;
    transform: translateY(-2px);
}

.tab-content {
    background: #fcf6ed;
    border-radius: 40px 40px 30px 30px;
    padding: 35px 35px;
    box-shadow: inset 0 0 0 1px #fae9da, 0 20px 30px -10px #c6ad95;
    margin-top: 20px;
    border: 1px solid #e7cfbb;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.sub-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.sub-tab-button {
    background: #e3d1c0;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    transition: 0.2s;
}

.sub-tab-button.active-sub {
    background: #b48d72;
    color: white;
}

.sub-price-pane {
    display: none;
}

.sub-price-pane.active-sub {
    display: block;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.price-card {
    background: #f2e3d5;
    border-radius: 30px;
    padding: 22px 18px;
    box-shadow: 0 10px 15px -8px #bba48d;
    border: 1px solid #edd6c2;
    transition: 0.2s;
}

.price-card:hover {
    background: #ebd9c8;
    border-color: #b48e74;
}

.price-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.9rem;
    border-bottom: 2px dashed #b48d72;
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: #402f27;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 1.1rem;
    font-weight: 400;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.price-value {
    font-weight: 700;
    color: #6c4d37;
    background: #fae5d3;
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 1.2rem;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    background: #ebd9ca;
    padding: 20px 25px;
    border-radius: 40px;
    margin: 20px 0;
    color: #4a3529;
    border-left: 8px solid #b48d72;
}

.promo-card {
    background: linear-gradient(135deg, #fff5eb, #fae8d8);
    border-radius: 40px;
    padding: 25px;
    text-align: center;
    margin: 25px 0;
    border: 2px dashed #b48d72;
    position: relative;
}

.promo-badge {
    background: #b48d72;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3f2f26;
}

.promo-discount {
    font-size: 3rem;
    font-weight: bold;
    color: #b48d72;
    margin: 10px 0;
}

.promo-text {
    font-size: 1.1rem;
    color: #5d4337;
    margin-bottom: 25px;
}

.promo-btn {
    background: #b48d72;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    background: linear-gradient(135deg, #fef9f2, #f2e3d5);
    border-radius: 30px;
    padding: 20px 30px;
    text-decoration: none;
    color: #4e3e33;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #eedacb;
    flex: 1;
    min-width: 200px;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.15);
    border-color: #b48d72;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #b48d72, #d6bca8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon .material-icons {
    font-size: 24px;
}

.service-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
}

.service-arrow {
    color: #b48d72;
    font-size: 24px;
    transition: transform 0.2s;
}

.service-item:hover .service-arrow {
    transform: translateX(5px);
}

.brand-highlight {
    display: inline-block;
    background: #b4947a;
    color: #fef1e0;
    font-style: italic;
    padding: 4px 18px;
    border-radius: 60px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-icon {
    background: #b48d72;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    margin-left: 10px;
}

.info-icon:hover {
    background: #9c755b;
    transform: scale(1.05);
}

.brand-card {
    background: #fef9f2;
    border-radius: 30px;
    padding: 20px 25px;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s ease;
    border: 1px solid #eedacb;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.15);
    border-color: #b48d72;
}

.brand-card img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #4e3e33;
    margin: 0;
    font-weight: 600;
}

.product-photo-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: #fef9f2;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.product-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.15);
}

.product-photo-card img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.product-photo-card p {
    margin-top: 12px;
    font-weight: 500;
    color: #4e3e33;
}

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-card {
    background: #fef9f2;
    border-radius: 30px;
    padding: 25px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 1px solid #eedacb;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-card a {
    color: #4e3e33;
    text-decoration: none;
}

.contact-card a:hover {
    color: #b48d72;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #b48d72, #d6bca8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-icon .material-icons {
    font-size: 30px;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #3f2f26;
    margin-bottom: 10px;
    font-family: 'Quicksand', sans-serif;
}

.contact-card p {
    color: #5d4337;
    font-size: 1rem;
}

.map-container {
    margin-top: 30px;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    border: none;
}

.map-caption {
    margin-top: 15px;
    text-align: center;
}

.entrance-info {
    background: #b48d72;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.entrance-info .material-icons {
    font-size: 20px;
}

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f2e3d5;
    border-radius: 40px;
    padding: 35px;
    box-shadow: 0 15px 25px -10px #b99b84;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4e3e33;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #dcc9b6;
    border-radius: 30px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    background: #fffcf7;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b48d72;
    box-shadow: 0 0 0 3px rgba(180, 141, 114, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: #b48d72;
    color: #fef7ed;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
    box-shadow: 0 6px 0 #6f4f3b;
    font-family: 'Quicksand', sans-serif;
}

.submit-btn:hover {
    background: #9c755b;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #6f4f3b;
}

.success-message {
    background: #a8c9b0;
    color: #1f4f2d;
    padding: 15px 25px;
    border-radius: 30px;
    margin-bottom: 20px;
    border-left: 8px solid #2e7d32;
    font-weight: 500;
}

.error-message {
    background: #f3d8d8;
    color: #a53838;
    padding: 15px 25px;
    border-radius: 30px;
    margin-bottom: 20px;
    border-left: 8px solid #c62828;
}

.appointments-list {
    background: #f2e3d5;
    border-radius: 30px;
    padding: 25px;
    margin-top: 30px;
}

.appointment-item {
    background: #fffcf7;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 8px solid #b48d72;
}

.appointment-date {
    color: #6c4d37;
    font-weight: 600;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin: 40px 0 10px;
    font-size: 1rem;
    color: #826a58;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fcf6ed;
    border-radius: 40px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 2px solid #b48d72;
}

.modal-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 2rem;
    color: #3f2f26;
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-content p,
.modal-content li {
    color: #4e3e33;
    line-height: 1.6;
}

.modal-content ul,
.modal-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #b48d72;
    transition: 0.2s;
}

.close-modal:hover {
    color: #9c755b;
    transform: scale(1.1);
}

.procedure-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0 25px;
    gap: 10px;
    background: linear-gradient(135deg, #fff5eb, #fae8d8);
    padding: 20px;
    border-radius: 30px;
    position: relative;
}

.procedure-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #b48d72, #d6bca8, #b48d72);
    transform: translateY(-50%);
    z-index: 0;
}

@keyframes stepAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes arrowMove {
    0% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 0.5;
    }
}

.step {
    flex: 1;
    min-width: 70px;
    text-align: center;
    background: #fcf6ed;
    border-radius: 20px;
    padding: 12px 8px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1;
    opacity: 0;
    animation: stepAppear 0.5s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }
.step:nth-child(5) { animation-delay: 0.9s; }
.step:nth-child(6) { animation-delay: 1.1s; }

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #b48d72;
    font-weight: bold;
    animation: arrowMove 1.5s ease-in-out infinite;
    background: #fcf6ed;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

.step:last-child::after {
    display: none;
}

.step:hover {
    transform: translateY(-8px);
    background: #ebd9c8;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #b48d72, #d6bca8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1);
}

.step-number {
    background: #b48d72;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background: #9c755b;
    transform: scale(1.1);
}

.step-title {
    font-size: 11px;
    font-weight: 600;
    color: #4e3e33;
    transition: all 0.3s ease;
}

.step:hover .step-title {
    color: #b48d72;
}

.step-desc {
    font-size: 9px;
    color: #826a58;
    margin-top: 4px;
}

.captcha-group {
    background: #e8d9cc;
    border-radius: 30px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-refresh {
    background: #b48d72;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.captcha-refresh:hover {
    background: #9c755b;
    transform: rotate(15deg);
}

.captcha-input {
    width: 100px !important;
    text-align: center;
    font-size: 1.1rem !important;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ ТЕЛЕФОНОВ */
@media (max-width: 768px) {
    .wrapper {
        padding: 12px 15px;
    }

    .header {
        padding: 18px 20px;
        border-radius: 32px 32px 20px 20px;
    }

    .header-logo {
        max-width: 140px;
        padding: 5px;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    .subhead {
        font-size: 0.9rem !important;
        padding-left: 12px;
    }

    .tabs {
        gap: 8px;
        margin: 20px 0 15px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 30px 30px 15px 15px;
    }

    .tab-content {
        padding: 20px 15px;
        border-radius: 30px 30px 25px 25px;
    }

    .promo-card {
        padding: 20px 15px;
        border-radius: 25px;
    }

    .promo-title {
        font-size: 1.3rem;
    }

    .promo-discount {
        font-size: 2rem;
    }

    .promo-text {
        font-size: 0.85rem;
    }

    .promo-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .quote-text {
        font-size: 0.95rem;
        padding: 15px;
    }

    .price-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .price-card {
        padding: 18px 15px;
    }

    .price-card h3 {
        font-size: 1.5rem;
    }

    .price-line {
        font-size: 0.95rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .price-value {
        font-size: 1rem;
        padding: 3px 10px;
    }

    .sub-tab-button {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .appointment-form {
        padding: 20px;
        border-radius: 30px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .services-grid {
        flex-direction: column;
    }

    .service-item {
        padding: 14px 20px;
    }

    .service-name {
        font-size: 0.95rem;
    }

    .brand-card {
        min-width: 130px;
        padding: 15px;
    }

    .brand-card img {
        max-width: 80px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .contacts-grid {
        flex-direction: column;
        gap: 15px;
    }

    .contact-card {
        padding: 18px;
    }

    .map-iframe {
        height: 250px;
    }

    .captcha-question {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .captcha-group div {
        flex-wrap: wrap;
        justify-content: center;
    }

    .procedure-steps {
        padding: 12px;
        gap: 8px;
    }

    .procedure-steps::before {
        display: none;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .step {
        padding: 8px 4px;
        min-width: 55px;
    }

    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-title {
        font-size: 8px;
    }

    .step-desc {
        font-size: 7px;
    }

    footer {
        font-size: 0.8rem;
        margin-top: 25px;
    }

    .modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .modal-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 8px 10px;
    }

    .header {
        padding: 12px 15px;
    }

    .header-logo {
        max-width: 100px;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    .subhead {
        font-size: 0.7rem !important;
    }

    .tab-button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .promo-title {
        font-size: 1.1rem;
    }

    .promo-discount {
        font-size: 1.6rem;
    }

    .brand-card {
        min-width: 100px;
        padding: 10px;
    }

    .brand-card img {
        max-width: 60px;
    }

    .step-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}