
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #444;
    background: linear-gradient(rgba(255, 230, 240, 0.6), rgba(255, 219, 231, 0.6)), url('assets/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    padding: 15px;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 25px 20px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(211, 154, 177, 0.18);
    color: #553d4a;
}

h1 {
    color: #e83e8c;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.9em;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

h2 {
    color: #d63384;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f8d7da;
    padding-bottom: 8px;
    font-weight: 400;
    font-size: 1.5em;
}

.subtitle {
    text-align: center;
    color: #7c5f6d;
    margin-bottom: 30px;
    font-size: 1.0em;
}

a {
    color: #d63384;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover, a:active {
    color: #e83e8c;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(232, 62, 140, 0.4);
}

.palette-group {
    margin-bottom: 30px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.palette-grid.small-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.palette-card {
    display: block;
    padding: 25px 15px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    color: #6c4f5c;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(211, 154, 177, 0.15);
    position: relative;
    overflow: hidden;
}

.palette-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s ease;
    z-index: 0;
    border-radius: inherit;
}

.palette-card:hover::before, .palette-card:active::before {
    background-color: rgba(255, 255, 255, 0.2);
}

.palette-card:hover, .palette-card:active {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(211, 154, 177, 0.25);
    color: #e83e8c;
}

.palette-card.spring {
    background: linear-gradient(145deg, #F4E178, #C8EFCF);
}

.palette-card.summer {
    background: linear-gradient(145deg, #f9edc7, #fdb910);
}

.palette-card.autumn {
    background: linear-gradient(145deg, #ecd77d, #f5577b);
}

.palette-card.winter {
    background: linear-gradient(145deg, #C6E5F5, #5AB2E3);
}

.palette-card.light-spring {
    background: linear-gradient(145deg, #E9E48E, #DEE8A4);
}

.palette-card.warm-spring {
    background: linear-gradient(145deg, #DEE8A4, #D3ECB9);
}

.palette-card.clear-spring {
    background: linear-gradient(145deg, #D3ECB9, #C8EFCF);
}

.palette-card.light-summer {
    background: linear-gradient(145deg, #F9EDC7, #FAE099);
}

.palette-card.cool-summer {
    background: linear-gradient(145deg, #FAE099, #FCC63E);
}

.palette-card.soft-summer {
    background: linear-gradient(145deg, #ffe471, rgba(248, 206, 54, 0.7));
}

.palette-card.deep-autumn {
    background: linear-gradient(145deg, #ECD77D, #EEB77C);
}

.palette-card.warm-autumn {
    background: linear-gradient(145deg, #EEB77C, #F3777C);
}

.palette-card.soft-autumn {
    background: linear-gradient(145deg, #F3777C, rgba(245, 87, 123, 0.7));
}

.palette-card.deep-winter {
    background: linear-gradient(145deg, #C6E5F5, #A2D4EF);
}

.palette-card.cool-winter {
    background: linear-gradient(145deg, #A2D4EF, #7EC3E9);
}

.palette-card.clear-winter {
    background: linear-gradient(145deg, #7EC3E9, #5AB2E3);
}

.palette-card.warm-whites {
    background: linear-gradient(145deg, #fffefb, #fff8e1);
}

.palette-card.cool-whites {
    background: linear-gradient(145deg, #ffffff, #d7e6e7);
}

.palette-card.warm-pink {
    background: linear-gradient(145deg, #fff0f5, #ffc7ea);
}

.palette-card.cool-pink {
    background: linear-gradient(145deg, #fce4ec, #f8bbd0);
}

.palette-card.warm-brown {
    background: linear-gradient(145deg, #fff8e1, #cdb184);
}

.palette-card.cool-brown {
    background: linear-gradient(145deg, #f5f5f5, #deaa93);
}

#palette-title {
    color: #e83e8c;
}

#palette-description {
    margin-bottom: 25px;
    font-size: 1.05em;
    color: #6c4f5c;
    text-align: center;
}

.product-recommendations h2 {
    margin-top: 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    border: none;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 18px rgba(211, 154, 177, 0.15);
}

.product-card:hover, .product-card:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(211, 154, 177, 0.22);
}

.product-card img {
    max-width: 60%;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 10px auto;
    display: block;
    border-radius: 8px;
}

.product-card .product-name {
    font-weight: 600;
    font-size: 0.9em;
    color: #553d4a;
    min-height: auto;
    line-height: 1.3;
}

.product-card .product-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85em;
    padding: 7px 16px;
    background: linear-gradient(45deg, #f77aaa, #e83e8c);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(232, 62, 140, 0.2);
}

.product-card .product-link:hover, .product-card .product-link:active {
    background: linear-gradient(45deg, #f98bbb, #f0509a);
    transform: scale(1.04);
    box-shadow: 0 5px 13px rgba(232, 62, 140, 0.28);
    text-decoration: none;
}

.discount-section {
    background: linear-gradient(135deg, #fff5f8, #ffeaf0);
    padding: 25px;
    border-radius: 20px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(211, 154, 177, 0.1);
}

.discount-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    color: #d63384;
}

.discount-section p {
    text-align: center;
    margin-bottom: 20px;
    color: #7c5f6d;
    font-size: 0.95em;
}

#discount-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#discount-form label {
    font-weight: 600;
    color: #7c5f6d;
    margin-bottom: -8px;
    font-size: 0.9em;
}

#discount-form input[type="email"] {
    padding: 12px 18px;
    border: 1px solid #f8d7da;
    border-radius: 25px;
    font-size: 1em;
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#discount-form input[type="email"]:focus {
    outline: none;
    border-color: #f1a9c0;
    box-shadow: 0 0 8px rgba(232, 62, 140, 0.15);
}

#discount-form button[type="submit"] {
    padding: 12px 30px;
    background: linear-gradient(45deg, #e83e8c, #d63384);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.3);
    width: 100%;
    max-width: 350px;
}

#discount-form button[type="submit"]:hover, #discount-form button[type="submit"]:active {
    background: linear-gradient(45deg, #f0509a, #e83e8c);
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(214, 51, 132, 0.38);
}

#discount-form button[type="submit"]:disabled {
    background: #fcc2d9;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 8px;
    font-weight: bold;
    min-height: 1.2em;
    text-align: center;
    font-size: 0.9em;
}

.form-message.success {
    color: #0f5132;
}

.form-message.error {
    color: #842029;
}

.promo-code {
    font-weight: bold;
    background-color: #fff0f5;
    padding: 3px 8px;
    border-radius: 5px;
    color: #c71f73;
    border: 1px dashed #f1a9c0;
    font-size: 0.95em;
}

.back-link {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95em;
}

.confirmation-page h1 {
    color: #e83e8c;
}

.confirmation-message {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 15px;
    color: #553d4a;
}

.confirmation-page p {
    text-align: center;
    color: #7c5f6d;
    font-size: 0.95em;
}

.list-social-media {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.list-social-media li {
    margin: 0;
    padding: 0;
}

.list-social-media a {
    display: inline-block;
    color: #e6007e;
    transition: color 0.3s ease, transform 0.2s ease;
}

.site-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #f8d7da;
    text-align: center;
}

.site-footer p {
    margin: 0;
    padding: 0;
    font-size: 0.7em;
    color: #a58faa;
    line-height: 1.5;
}

@media (min-width: 600px) {
    .container {
        padding: 30px 35px;
        margin: 30px auto;
    }

    h1 {
        font-size: 2.1em;
    }

    h2 {
        font-size: 1.7em;
    }

    .subtitle {
        font-size: 1.05em;
    }

    .palette-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 18px;
    }

    .palette-grid.small-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .product-card img {
        max-width: 70%;
        height: 130px;
    }

    .product-card .product-name {
        font-size: 0.95em;
        height: 42px;
    }

    .product-card .product-link {
        font-size: 0.9em;
        padding: 0px 18px;
    }

    #discount-form input[type="email"] {
        max-width: 450px;
    }

    #discount-form button[type="submit"] {
        width: auto;
        padding: 13px 32px;
    }

    .site-logo {
        display: block;
        margin: 0 auto 30px auto;
        max-width: 420px;
        height: auto;
    }

    .logo-link:focus {
        text-decoration: none;
        line-height: 0;
    }
}

@media (max-width: 600px) {
    .site-logo {
        display: block;
        margin: 0 auto 0 auto;
        max-width: 250px;
        margin-bottom: 20px;
        height: auto;
    }

    .list-social-media {
        margin-top: 30px;
        gap: 20px;
    }

    .list-social-media svg {
        width: 22px;
        height: 22px;
    }

    .site-footer {
        margin-top: 40px;
        padding-top: 15px;
    }

    .site-footer p {
        font-size: 0.6em;
    }
}

@media (min-width: 769px) {
    body {
        padding: 20px;
    }

    .container {
        padding: 35px 40px;
        margin: 40px auto;
        border-radius: 25px;
    }

    h1 {
        font-size: 2.3em;
    }

    h2 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .palette-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    .palette-grid.small-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .palette-card {
        padding: 30px 20px;
        font-size: 1em;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .product-card img {
        max-width: 80%;
        height: 140px;
    }

    .product-card .product-name {
        font-size: 1em;
    }

    .product-card .product-link {
        font-size: 0.9em;
        padding: 8px 18px;
    }

    .discount-section {
        padding: 30px;
    }

    .discount-section p {
        font-size: 1em;
    }

    #discount-form label {
        font-size: 1em;
    }

    #discount-form button[type="submit"] {
        font-size: 1.1em;
        padding: 14px 35px;
    }

    .promo-code {
        font-size: 1em;
    }

    .back-link {
        font-size: 1em;
    }

    .confirmation-message {
        font-size: 1.2em;
    }

    .confirmation-page p {
        font-size: 1em;
    }
}

@media (max-width: 359px) {
    h1 {
        font-size: 1.7em;
    }

    h2 {
        font-size: 1.4em;
    }

    .subtitle {
        font-size: 0.9em;
        margin-bottom: 25px;
    }

    .container {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .palette-grid {
        gap: 12px;
    }

    .palette-grid.small-grid {
        gap: 10px;
    }

    .palette-card {
        padding: 20px 10px;
        font-size: 0.9em;
        border-radius: 12px;
    }

    .product-card {
        padding: 12px;
        border-radius: 12px;
    }

    .product-card img {
        max-width: 55%;
        height: 100px;
    }

    .product-card .product-name {
        font-size: 0.85em;
    }

    .product-card .product-link {
        font-size: 0.8em;
        padding: 6px 14px;
    }

    .discount-section {
        padding: 20px;
    }

    .discount-section p {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    #discount-form label {
        font-size: 0.85em;
    }

    #discount-form input[type="email"] {
        padding: 10px 15px;
    }

    #discount-form button[type="submit"] {
        font-size: 1em;
        padding: 10px 25px;
    }
}