/* ===== CSS Reset & Variables ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #E5B44A;
    --color-primary-dark: #c99d3a;
    --color-accent: #d4423e;
    --color-accent-dark: #b83632;
    --color-dark: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #f9f7f3;
    --color-bg-light: #ffffff;
    --color-bg-dark: #2d2d2d;
    --font-primary: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

ul {
    list-style: none;
}

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

input, select {
    font-family: inherit;
    outline: none;
}

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

.section__title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-dark);
}

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

.hidden {
    display: none !important;
}

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

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

.header__logo .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
}

.header__logo .logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-dark);
}

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

.header__phone .icon {
    width: 20px;
    height: 20px;
}

.header__socials {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    z-index: -2;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/headerblock.jpg') center/cover;
    opacity: 0.3;
}

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

.hero__content {
    color: white;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-accent);
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title .highlight {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--color-accent);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.hero__cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 66, 62, 0.4);
}

.hero__cta .icon {
    width: 20px;
    height: 20px;
}

.pulse-btn {
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(212, 66, 62, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(212, 66, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 66, 62, 0); }
}

/* ===== Hero Form ===== */
.hero__form-wrapper {
    display: flex;
    justify-content: center;
}

.hero__form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.form__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.form__subtitle {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.form__group {
    margin-bottom: 16px;
}

.form__input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--color-primary);
}

.phone-input {
    display: flex;
    gap: 8px;
}

.phone-code {
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 16px;
    background: white;
    cursor: pointer;
    min-width: 90px;
}

.phone-code:focus {
    border-color: var(--color-primary);
}

.phone-field {
    flex: 1;
}

.form__submit {
    width: 100%;
    padding: 18px;
    background: var(--color-primary);
    color: var(--color-dark);
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-top: 8px;
}

.form__submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form__privacy {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 16px;
}

.form__privacy label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.form__privacy input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--color-primary);
}

/* ===== Why Us Section ===== */
.why-us {
    padding: 80px 0;
    background: var(--color-bg-light);
}

.why-us .section__title {
    position: relative;
    display: inline-block;
    width: 100%;
}

.why-us .section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.why-us__item {
    text-align: center;
    padding: 20px;
}

.why-us__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.why-us__item:hover .why-us__icon {
    transform: scale(1.1);
    background: rgba(229, 180, 74, 0.1);
}

.why-us__icon svg {
    width: 60px;
    height: 60px;
}

.why-us__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
}

/* ===== Products Section ===== */
.products {
    padding: 80px 0;
    background: var(--color-bg);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--color-accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.product-card__content {
    padding: 20px;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 44px;
}

.product-card__specs {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.product-card__btn {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.product-card__btn:hover {
    background: var(--color-primary-dark);
}

/* ===== Calculator Section ===== */
.calculator {
    padding: 80px 0;
    background: var(--color-bg-light);
}

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

.calculator__step {
    margin-bottom: 40px;
}

.step__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 24px;
    text-align: center;
}

.calculator__options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.type-options {
    gap: 40px;
}

.calculator__option {
    cursor: pointer;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 3px solid transparent;
    max-width: 300px;
}

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

.calculator__option.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(229, 180, 74, 0.2);
}

.option__image {
    height: 280px;
    overflow: hidden;
}

.option__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option__label {
    display: block;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark);
}

.size-options {
    gap: 20px;
}

.calculator__size-option {
    cursor: pointer;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 3px solid transparent;
}

.calculator__size-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.calculator__size-option.selected {
    border-color: var(--color-primary);
    background: rgba(229, 180, 74, 0.1);
}

.size__value {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.size__label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.calculator__result {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.result__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.result__selection {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.result__selection span {
    font-weight: 600;
    color: var(--color-primary);
}

.calculator__form {
    max-width: 500px;
    margin: 0 auto;
}

.form__row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form__row .form__input {
    flex: 1;
}

.form__row .phone-input {
    flex: 1;
}

/* ===== Promo Section ===== */
.promo {
    padding: 80px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.promo::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80">🍃</text></svg>') center/contain no-repeat;
    opacity: 0.3;
    transform: rotate(30deg);
}

.promo__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.promo__title {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.promo__timer {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.timer__item {
    text-align: center;
    background: var(--color-bg);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    min-width: 80px;
}

.timer__value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.timer__label {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.promo__text {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 24px;
}

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

.promo__gifts {
    display: flex;
    gap: 24px;
}

.promo__gift {
    text-align: center;
}

.promo__gift img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid var(--color-bg);
}

.promo__gift span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

.promo__form-wrapper {
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.promo__form-wrapper .form__title {
    text-align: center;
    margin-bottom: 24px;
}

.promo__submit {
    background: var(--color-primary);
}

/* ===== Gallery Section ===== */
.gallery {
    padding: 80px 0;
    background: var(--color-bg-light);
}

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

.gallery__item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: var(--transition);
}

.gallery__item:hover::after {
    background: rgba(0,0,0,0.2);
}

/* ===== Questions Section ===== */
.questions {
    padding: 80px 0;
    background: var(--color-bg);
}

.questions__form {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.questions__form .form__row {
    justify-content: center;
}

.questions__form .form__input {
    max-width: 280px;
}

.questions__submit {
    max-width: 300px;
    margin: 0 auto;
    background: var(--color-primary);
    border-radius: 50px;
    font-size: 16px;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
}

.footer__desc {
    margin-top: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

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

.footer__list li:not(:has(a)) {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer__socials a:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

.footer__socials svg {
    width: 20px;
    height: 20px;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    font-size: 28px;
    color: var(--color-text-light);
    transition: var(--transition);
}

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

.modal__icon {
    width: 80px;
    height: 80px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal__icon svg {
    width: 40px;
    height: 40px;
    color: #4CAF50;
}

.modal__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.modal__text {
    color: var(--color-text-light);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 16px;
    height: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero__content {
        order: 1;
    }
    
    .hero__form-wrapper {
        order: 2;
    }
    
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .promo__content {
        text-align: center;
    }
    
    .promo__timer,
    .promo__gifts {
        justify-content: center;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header__container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header__phone {
        font-size: 16px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero__cta {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .hero__form {
        padding: 30px 24px;
    }
    
    .why-us__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator__options {
        gap: 16px;
    }
    
    .calculator__option {
        max-width: 100%;
        width: 100%;
    }
    
    .type-options {
        flex-direction: column;
        align-items: center;
    }
    
    .calculator__size-option {
        width: 100px;
        height: 100px;
    }
    
    .size__value {
        font-size: 32px;
    }
    
    .form__row {
        flex-direction: column;
    }
    
    .promo__timer {
        flex-wrap: wrap;
    }
    
    .timer__item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .timer__value {
        font-size: 28px;
    }
    
    .promo__gifts {
        flex-wrap: wrap;
    }
    
    .promo__wrapper {
        padding: 30px 20px;
    }
    
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section__title {
        font-size: 26px;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
    }
    
    .promo__title {
        font-size: 32px;
    }
    
    .questions__form .form__input {
        max-width: 100%;
    }
}
