/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: hsl(243, 75%, 59%);
    --primary-hover: hsl(243, 75%, 52%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222, 47%, 11%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --border: hsl(214, 32%, 91%);
    --secondary: hsl(210, 40%, 98%);
    --accent: hsl(210, 40%, 96%);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

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

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn--hero {
    background: linear-gradient(135deg, hsl(243, 75%, 59%), hsl(280, 60%, 50%));
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn--hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

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

/* Header */
.header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--foreground);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav__list a {
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: hsl(220, 20%, 97%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--foreground);
}

.hero__title--accent {
    display: block;
    color: hsl(223, 88%, 60%);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 16px;
}

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

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(223, 88%, 60%);
}

.stat__label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 4px;
}

.hero__image img {
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Section Header */
.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

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

.section__subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto;
}

.section__subtitle--light {
    color: var(--muted-foreground);
}

/* Catalog Section */
.catalog {
    padding: 80px 0;
    background-color: var(--background);
}

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

/* Product Card */
.product-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--muted);
}

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

.product-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.product-card__description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.product-card__features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.product-card__features li {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card__features li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Catalog Gallery */
.catalog__cta {
    text-align: center;
}

.catalog__cta-title {
    font-size: 2rem;
    margin-bottom: 32px;
}

.catalog__gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.catalog__gallery-item {
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s;
}

.catalog__gallery-item:hover {
    transform: scale(1.05);
}

/* Calculator Section */
.calculator {
    padding: 80px 0;
    background: hsl(220, 20%, 97%);
    color: var(--foreground);
}

.calculator__form {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator__form-content {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
}

.calculator__info {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calculator__info h3 {
    margin-bottom: 24px;
    font-size: 1.125rem;
    color: var(--foreground);
}

.calculator__info span {
    color: hsl(223, 88%, 60%);
    font-weight: 700;
}

.calculator__note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 16px;
}

.calculator__result {
    margin-top: 24px;
    padding: 24px;
    background: var(--muted);
    border-radius: var(--radius);
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-privacy {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 16px;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--muted);
}

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

.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

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

.gallery__item:hover .gallery__overlay {
    transform: translateY(0);
}

.gallery__overlay h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.gallery__overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.gallery__footer {
    text-align: center;
}

.gallery__stat {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 24px;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: hsl(220, 20%, 97%);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Contact Form */
.contact__form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact__form-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
    color: var(--foreground);
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Contact Info Wrapper */
.contact__info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__info-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact__info-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--foreground);
}

.contact__info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact__info-item:last-child {
    margin-bottom: 0;
}

.contact__icon {
    color: hsl(223, 88%, 60%);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
    display: block;
}

.contact__info-value a {
    color: var(--foreground);
}

.contact__info-value a:hover {
    color: hsl(223, 88%, 60%);
}

.contact__info-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* CTA Card */
.contact__cta-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact__cta-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--foreground);
}

.contact__cta-text {
    color: var(--muted-foreground);
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.btn--call {
    background: hsl(40, 95%, 60%);
    color: hsl(30, 40%, 20%);
    gap: 8px;
}

.btn--call:hover {
    background: hsl(40, 95%, 55%);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--foreground);
    color: white;
    padding: 48px 0 24px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer__section h3 {
    margin-bottom: 16px;
}

.footer__section h4 {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.footer__section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer__links {
    list-style: none;
}

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

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    max-width: 400px;
    z-index: 10000;
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.notification--success .notification__icon {
    background: hsl(142, 76%, 90%);
    color: hsl(142, 76%, 36%);
}

.notification--success .notification__icon::before {
    content: "✓";
}

.notification--error .notification__icon {
    background: hsl(0, 84%, 90%);
    color: hsl(0, 84%, 60%);
}

.notification--error .notification__icon::before {
    content: "✕";
}

.notification__content {
    flex: 1;
}

.notification__title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--foreground);
}

.notification__message {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal__close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.3s;
    line-height: 1;
}

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

.modal__content h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.modal__content p {
    color: var(--muted-foreground);
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .catalog__gallery {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    /* Tablet: 2 columns for catalog */
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__content {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
    }

    .nav__list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero__stats {
        gap: 16px;
    }

    /* Mobile: 1 column for catalog */
    .catalog__grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

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