:root {
    --cream: #FFF7ED;
    --pink: #F3C6D3;
    --blue: #CDE6F5;
    --lavender: #D9CFF2;
    --cocoa: #8B6B5E;
    --text-dark: #3A3A3A;
    --text-light: #6B6B6B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: normal;
    line-height: 1.4;
    color: var(--cocoa);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: var(--cocoa);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

header {
    background-color: var(--cream);
    padding: 2rem 0;
    border-bottom: 2px solid var(--pink);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--cocoa);
    white-space: nowrap;
    flex-shrink: 0;
}

nav {
    flex-shrink: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

nav a {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    background-color: var(--pink);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--cocoa);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--cocoa);
    font-size: 1.2rem;
}

main {
    min-height: 60vh;
    overflow-x: hidden;
    width: 100%;
}

section {
    padding: 4rem 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-offset-left {
    padding-left: 5%;
    padding-right: 2rem;
}

.section-offset-right {
    padding-right: 5%;
    padding-left: 2rem;
}

.bg-pink {
    background-color: var(--pink);
    border-radius: 0 40px 40px 0;
}

.bg-blue {
    background-color: var(--blue);
    border-radius: 40px 0 0 40px;
}

.bg-lavender {
    background-color: var(--lavender);
    border-radius: 30px;
}

.hero-section {
    padding: 4rem 0;
    position: relative;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 0;
    color: var(--text-light);
}

.welcome-section {
    padding: 5rem 0;
    text-align: left;
}

.welcome-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.welcome-section h1 {
    margin-bottom: 2rem;
}

.welcome-text {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 2rem;
}

.toy-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
}

.category-card {
    background-color: white;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(139, 107, 94, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:nth-child(even) {
    margin-top: 2rem;
}

.category-card:nth-child(3n) {
    margin-top: -1rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 107, 94, 0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    margin-bottom: 1rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
}

.material-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 20px;
}

.material-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.story-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.story-step {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 20px;
    margin-left: 5%;
    margin-right: 2rem;
}

.story-step:nth-child(even) {
    margin-left: 2rem;
    margin-right: 5%;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
}

.safety-card {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    border-left: 4px solid var(--blue);
}

.gift-grid {
    display: flex;
    gap: 2rem;
    padding: 3rem 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.gift-grid::-webkit-scrollbar {
    height: 8px;
}

.gift-grid::-webkit-scrollbar-track {
    background: var(--cream);
}

.gift-grid::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 4px;
}

.gift-card {
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(139, 107, 94, 0.1);
}

.gift-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 3rem 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
}

.product-card {
    background-color: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 107, 94, 0.1);
    transition: transform 0.3s ease;
}

.product-card:nth-child(odd) {
    transform: rotate(-1deg);
}

.product-card:nth-child(even) {
    transform: rotate(1deg);
}

.product-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
}

.product-card-content {
    padding: 1.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(139, 107, 94, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--cocoa);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--pink);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cocoa);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--pink);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--cocoa);
    transform: translateY(-2px);
}

.text-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: 25px;
    line-height: 2;
}

.info-block {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
}

footer {
    background-color: var(--cocoa);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--cream);
}

.footer-section a:hover {
    color: var(--pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-heading {
    position: relative;
    margin-left: 5%;
    padding: 1rem 2rem;
    background-color: var(--lavender);
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 2rem;
    margin-right: 2rem;
}

.tradition-section,
.process-gallery-section,
.visit-section,
.custom-section,
.age-section,
.care-section,
.packaging-section,
.certification-section,
.sourcing-section,
.atelje-section,
.time-section,
.values-section,
.features-section {
    position: relative;
}

@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .hero-section .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .welcome-section .container {
        max-width: 900px;
        padding: 0 40px;
    }

    .hero-section h1 {
        font-size: 2.3rem;
    }

    .toy-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .materials-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .safety-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tradition-section > div,
    .care-section > div,
    .packaging-section > div,
    .sourcing-section > div,
    .atelje-section > div {
        gap: 2rem;
    }

    .story-section {
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .tradition-section > div,
    .care-section > div,
    .packaging-section > div,
    .sourcing-section > div,
    .atelje-section > div {
        grid-template-columns: 1fr !important;
    }

    .tradition-section img,
    .care-section img,
    .packaging-section img,
    .sourcing-section img,
    .atelje-section img {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
        flex-basis: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section .container {
        padding: 0 20px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .welcome-section {
        padding: 3rem 0;
    }

    .welcome-section .container {
        padding: 0 20px;
    }

    .section-offset-left,
    .section-offset-right {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .story-step {
        margin-left: 0;
        margin-right: 0;
    }

    .product-card:nth-child(odd),
    .product-card:nth-child(even) {
        transform: none;
    }

    .product-card:hover {
        transform: translateY(-5px);
    }

    .toy-categories {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .category-card:nth-child(even),
    .category-card:nth-child(3n) {
        margin-top: 0;
    }

    .materials-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .gift-grid {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .gift-card {
        min-width: auto;
    }

    .contact-form {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    .text-section {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .floating-heading {
        margin-left: 0;
        padding: 0.8rem 1.5rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-section .container {
        padding: 0 15px;
    }

    .hero-section h1 {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .welcome-section {
        padding: 2rem 0;
    }

    .welcome-section .container {
        padding: 0 15px;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .toy-categories,
    .materials-grid,
    .product-grid,
    .safety-grid {
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }

    .category-card,
    .material-item,
    .safety-card,
    .product-card {
        padding: 1.2rem;
    }

    .category-card img,
    .product-card img {
        height: 180px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }

    .gift-grid {
        padding: 1.5rem 0.5rem;
    }

    .gift-card {
        padding: 1.2rem;
        min-width: 100%;
    }

    .gift-card img {
        height: 200px;
    }

    .contact-form {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0.5rem;
    }

    .text-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0.5rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .material-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .footer-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }

    .footer-section {
        font-size: 0.9rem;
    }

    section {
        padding: 2rem 0;
    }

    .section-offset-left,
    .section-offset-right {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section .container {
        padding: 0 15px;
    }

    .welcome-section {
        padding: 2rem 0 !important;
    }

    .welcome-section .container {
        padding: 0 15px !important;
    }

    .floating-heading {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .story-step {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .story-step:nth-child(even) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .floating-heading {
        margin-left: 0;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .story-step {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .info-block {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    nav a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .header-content {
        padding: 1rem 0;
    }

    .mobile-menu-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }

    .tradition-section,
    .care-section,
    .packaging-section,
    .sourcing-section,
    .atelje-section,
    .visit-section,
    .custom-section,
    .age-section,
    .certification-section,
    .time-section,
    .values-section,
    .features-section {
        padding: 2rem 0.5rem !important;
    }

    .tradition-section > div,
    .care-section > div,
    .packaging-section > div,
    .sourcing-section > div,
    .atelje-section > div {
        gap: 1.5rem;
    }

    .process-gallery-section > div {
        padding: 1.5rem 0.5rem;
    }

    .process-gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

