/* Reset Styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base font size for rem calculations */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: 10rem;
}

body {
    margin: 0;
}

/* Utility Classes */

.mobile-only {
    display: flex;
}

/* Header - Mobile First */
.header {
    background: #e0e4ffaa;
    border: 0.0625rem solid #cacaca;
    border-radius: 0.625rem;
    padding: 2rem 1rem 0.125rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    flex-shrink: 0;
    position: sticky;
    width: calc(100% - 2rem);
    margin: 0 auto;
    top: 0.5rem;
    z-index: 1000;
    overflow: hidden;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.4375rem;
    width: 12.875rem;
}

.company-name {
    color: #28316c;
    text-align: center;
    font-family: "PtSans-Regular", sans-serif;
    font-size: 0.9375rem;
}

.menu-icon {
    width: 3.5rem;
    height: 3.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-title {
    color: #28316c;
    text-align: center;
    font-family: "Inter-Bold", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-description {
    color: #595959;
    text-align: center;
    font-family: "Inter-Light", sans-serif;
    font-size: 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 6.875rem;
    object-fit: cover;
    background: #c4c4c4;
}

/* Button Styles */
.btn {
    background: #28316c;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 24.875rem;
    height: 3.5rem;
    position: relative;
    color: #ffffff;
    font-family: "Inter-Bold", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none !important;
}

.btn:hover {
    background: #0b1c9c;
}

/* Products Section */
.products {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    color: #28316c;
    text-align: center;
    font-family: "Inter-Bold", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.products-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card {
    background: #ffffff;
    border-radius: 0.625rem;
    padding: 0.625rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: center;
    height: 13.75rem;
}

.product-image {
    background: #c4c4c4;
    width: 100%;
    height: 10rem;
    object-fit: cover;
}

.product-name {
    color: #595959;
    text-align: center;
    font-family: "Inter-Medium", sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

/* Advantages Section */
.advantages {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.advantages-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.advantage-card {
    background: #ffffff;
    border-radius: 0.5rem;
    border: 0.0625rem solid #cacaca;
    padding: 0.9375rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.advantage-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.advantage-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.advantage-title {
    color: #595959;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.advantage-text {
    color: #595959;
    font-family: "Inter-Medium", sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

/* Production Section */
.production {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.production-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.production-photo {
    background: #c4c4c4;
    border-radius: 0.5rem;
    width: calc(50% - 0.375rem);
    height: 8.75rem;
    object-fit: cover;
}

/* Contact Section */
.social-media {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 1.25rem;
}

.social-media-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.contact {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.8125rem;
    width: 100%;
}

.contact-info {
    flex-direction: column-reverse;
    gap: 0.75rem;
    align-items: center;
}

.contact-description {
    color: #595959;
    text-align: center;
    font-family: "Inter-Light", sans-serif;
    font-size: 1rem;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-label {
    color: #595959;
    font-family: "Inter-Light", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
}

.form-input {
    border-radius: 0.5rem;
    border: 0.0625rem solid #cacaca;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: inherit;
    transition: background 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 0.1875rem rgba(99, 102, 241, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.form-consent-text {
    font-size: 0.85rem;
}

.form-submit {
    margin-top: 0.5rem;
    width: 100%;
    height: 3.5rem;
}

.contact-cards {
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.contact-card {
    background: #eaecf8a1;
    border-radius: 0.5rem;
    border: 0.0625rem solid #cacaca;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: inherit;
    transition: background 0.3s ease;
    text-decoration: none;
}

.contact-card:hover {
    background: #d2d6fc91;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.contact-text {
    color: #595959;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}
.footer {
    padding: 0 1rem 0.125rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #28316c;
    border-radius: 6px;
    background: #f9f9f9a5;
    flex-shrink: 0;
    z-index: 1000;
    overflow: hidden;
    width: calc(100% - 2rem);
    margin: 0 auto;
}

.footer-content {
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
}

.footer-info {
    color: #595959;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.footer-link {
    color: #595959;
    text-align: center;
    font-family: "Inter-Regular", sans-serif;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    text-decoration: none;
}
/* Mobile Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.sidebar.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 17.5rem;
    height: 100%;
    background: #ffffff;
    box-shadow: -0.125rem 0 0.5rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar.active .sidebar-content {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.sidebar-close {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sidebar-close:hover {
    opacity: 0.7;
}

.sidebar-link {
    color: #28316c;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 0.0625rem solid #eaecf8;
    transition: color 0.3s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #5b6ed7;
}

.sidebar-link:last-child {
    border-bottom: none;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    color: #28316c;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #28316c;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-family: "PtSans-Regular", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Cursor style for clickable images */
.production-photo {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.production-photo:hover {
    opacity: 0.85;
}

/* keep in the end of mobile styles*/
.desktop-only {
    display: none;
}

/* Mobile content gutters */
@media screen and (max-width: 47.99rem) {
    .hero,
    .products,
    .advantages,
    .production,
    .contact {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Desktop Styles - 768px and above */
@media screen and (min-width: 48rem) {

    .desktop-only {
        display: block;
        padding: 0 0;
    }

    /* Main Container */
    .main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }

    /* Header */
    .header {
        border-radius: 0.625rem;
        padding: 0.625rem 1.5rem;
        margin: 1rem auto;
        align-items: center;
        justify-content: space-between;
        width: min(100% - 2rem, 76.25rem);
        gap: 1rem;
    }

    .logo-container {
        width: 14.875rem;
        height: 6.75rem;
    }

    .navigation {
        display: flex;
        gap: clamp(0.25rem, 1vw, 0.625rem);
        width: auto;
        flex: 1;
        min-width: 0;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .nav-link {
        color: #595959;
        text-align: center;
        font-family: "PtSans-Regular", sans-serif;
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        padding: 0.75rem 0.625rem;
        white-space: nowrap;
        transition: color 0.3s ease;
        text-decoration: none;
    }

    .nav-link:hover {
        color: #28316c;
    }

    .header-btn {
        display: flex;
        width: auto;
        min-width: 11rem;
        padding: 0 1.5rem;
        height: 3.25rem;
        flex-shrink: 0;
    }

    /* Hero */
    .hero {
        padding: 1.8rem;
        flex-direction: row;
        gap: 2.125rem;
        max-width: 70rem;
        margin: 2.125rem auto 0;
    }

    .hero-content {
        padding: 0.625rem;
        gap: 1.5rem;
        width: min(100%, 38.1875rem);
    }

    .hero-title {
        font-size: 3.5rem;
        width: auto;
        max-width: 31.5rem;
    }

    .hero-description {
        font-size: 1.625rem;
        width: auto;
        max-width: 37.5rem;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 26.5rem;
    }

    .hero-image {
        border-radius: 0.625rem;
        width: min(100%, 33.6875rem);
        height: 21rem;
    }

    /* Products */
    .products {
        padding: 1.8rem 0;
        gap: 1.725rem;
        max-width: 76.25rem;
        margin: 0 auto;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .products-grid {
        border-radius: 1rem;
        padding: 0.75rem 0;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.625rem;
    }

    .product-card {
        padding: 1.4375rem 1.3125rem;
        gap: 1rem;
        width: 22.5rem;
        flex: 0 0 22.5rem;
        height: 16.25rem;
    }

    .product-image {
        border-radius: 0.75rem;
        height: 11.25rem;
    }

    .product-name {
        font-size: 2rem;
    }

    /* Advantages */
    .advantages {
        padding: 1.8rem;
        max-width: 62rem;
        margin: 0 auto;
    }

    .advantages-grid {
        padding: 0.625rem;
        gap: 0.625rem;
    }

    .advantage-card {
        border-radius: 0.75rem;
        padding: 1.5rem;
        gap: 2rem;
        min-height: 8.75rem;
        height: auto;
        align-items: flex-start;
    }

    .advantage-icon {
        width: 5rem;
        height: 5rem;
    }

    .advantage-content {
        gap: 0.75rem;
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .advantage-title {
        color: #28316c;
        font-size: 1.5rem;
    }

    .advantage-text {
        font-family: "Inter-Regular", sans-serif;
        font-size: 1.25rem;
        font-weight: 400;
        width: auto;
    }

    /* Production */
    .production {
        padding: 1.8rem;
        gap: 2rem;
        max-width: 70rem;
        margin: 0 auto;
    }

    .production-grid {
        gap: 1.5rem;
        justify-content: center;
    }

    .production-photo {
        border-radius: 0.75rem;
        width: 23rem;
        height: 16.25rem;
    }

    /* Contact */
    .contact {
        padding: 1.8rem;
        gap: 1.875rem;
        max-width: 74rem;
        margin: 0 auto;
    }

    .contact-content {
        padding: 0.625rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem;
        width: 100%;
        align-items: stretch;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        padding: 0.625rem;
        gap: 0.75rem;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        max-width: none;
    }

    .contact-description {
        font-size: 1.5rem;
        color: #595959;
    }

    .contact-form {
        gap: 1rem;
        width: 100%;
        margin: 0;
        text-align: start;
    }

    .form-label {
        font-size: 1.125rem;
    }

    .form-input {
        padding: 1rem 1.25rem;
        font-size: 0.80rem;
        height: 3rem;
        width: 100%;
    }

    .form-submit {
        margin-top: 1rem;
        padding: 0.625rem;
    }

    .contact-cards {
        display: flex;
        flex-direction: column;
        padding: 0.625rem;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: none;
    }

    .contact-card {
        width: 100%;
        text-decoration: none;
    }

    .contact-text {
        font-size: 1.25rem;
    }

    .footer {
        gap: 1.875rem;
        width: min(100% - 2rem, 76.25rem);
        margin: 0 auto;
        text-align: center;
    }

    .footer-content {
        gap: 1.25rem;
        display: flex;
        flex-direction: row;
    }

    .footer-info {
        padding: 0.625rem;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
    }

    .footer-links {
        gap: 0.625rem;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 2.5rem;
        height: 2.5rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-counter {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    /* keep in the end of desktop styles*/
    .mobile-only {
        display: none;
    }
}

/* Tablet / small laptop tuning */
@media screen and (min-width: 48rem) and (max-width: 68.75rem) {
    .header {
        padding: 0.5rem 1rem;
    }

    .logo-container {
        width: 12rem;
        height: auto;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.625rem 0.5rem;
    }

    .header-btn {
        min-width: 9.5rem;
        padding: 0 1rem;
    }

    .hero {
        padding: 1rem;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Large Desktop Styles - 1200px and above */
@media screen and (min-width: 75rem) {
    .advantages-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        max-width: 62rem;
        margin: 0 auto;
    }
}
