/* Шрифты — подключи в <head>, если ещё не подключены */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Red+Hat+Display:wght@400;700&display=swap');

/* ============================================================
   Newsletter section
   ============================================================ */
#newsletter-section {
    background-color: #f87060;
    padding: 26px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

#newsletter-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-sizing: border-box;
}

#newsletter-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.21;
    color: #ffffff;
    text-align: left;
    margin: 0;
    width: 100%;
}

/* ============================================================
   Form
   ============================================================ */
#newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Email field — растягивается */
.newsletter-form-field {
    flex: 1 1 0;
    min-width: 0;
}

#newsletter-form input[type="email"] {
    width: 100%;
    height: 52.88px;
    background: transparent;
    border: 0.5px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 5px;
    padding: 0 16px;
    margin: 0;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#newsletter-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.9);
}

#newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Submit — фиксированной ширины */
.newsletter-form-submit {
    flex: 0 0 138px;
}

#newsletter-form button[type="submit"] {
    background-color: rgba(255, 255, 255, 0.5);
    color: #0d0126;
    border: none;
    border-radius: 5px;
    width: 100%;
    height: 52.88px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.32;
    letter-spacing: 0.1em;
    text-align: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    width: 20%;
}

#newsletter-form button[type="submit"]:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Скрытие label по a11y-правилам (label есть, но визуально не видна) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Mobile (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
    #newsletter-section {
        padding: 24px 0;
    }

    #newsletter-container {
        padding: 0 16px;
    }

    #newsletter-title {
        font-size: 24px;
        text-align: center;
    }

    #newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form-submit {
        flex: 0 0 auto;
        width: 100%;
    }
}
.newsletter-message {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 13px;
}

.newsletter-message.is-success {
    background: rgba(255, 255, 255, 0.9);
    color: #0d0126;
}

.newsletter-message.is-error {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}



/* ============================================================
   Partners section
   ============================================================ */
.partners-section {
    padding: 48px 0 !important;
    background: #ffffff;
}

.partners-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
}

.partners-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.21;
    color: #1a1a1a;
    margin: 0 0 32px;
    text-align: left;
}

/* ============================================================
   Grid
   ============================================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.partner-card:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);          /* убери если логотипы должны быть цветными */
    opacity: 0.7;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .partners-section {
        padding: 32px 0;
    }

    .partners-title {
        font-size: 24px;
        text-align: center;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .partner-card {
        height: 100px;
    }
}

/* Шрифты — подключи в <head> если ещё не подключены */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Red+Hat+Display:wght@300;700;900&display=swap');

/* ============================================================
   Wiize box section
   ============================================================ */
#wiizebox-section {
    background-color: #fbf8f5;
    padding: 60px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

#wiizebox-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

/* ============================================================
   Title + subtitle
   ============================================================ */
#wiizebox-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.21;
    color: #f87060;
    text-align: left;
    margin: 0;
}

#wiizebox-subtitle {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.32;
    color: #a6032f;
    text-align: left;
    margin: 6px 0 0;
}

/* ============================================================
   Cards (3 в ряд)
   ============================================================ */
#wiizebox-cards {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    padding-top: 30px;
    overflow: visible;
}

.wiizebox-card {
    flex: 1 1 0;
    min-width: 0;
    background-color: #f2e6d8;
    border-radius: 5px;
    padding: 24px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 145px;
    overflow: visible;
    box-sizing: border-box;
}

/* Большая цифра в правом верхнем углу — выходит за пределы карточки сверху */
.wiizebox-card .wiizebox-num {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 900;
    font-size: 78px;
    line-height: 1;
    color: #fcf9f5;
    position: absolute;
    top: -18px;
    right: 16px;
    margin: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.wiizebox-card .wiizebox-step {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.21;
    color: #f87060;
    text-align: left;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Вторая карточка — другой цвет заголовка */
#wiizebox-card-2 .wiizebox-step {
    color: #8a3528;
}

.wiizebox-card .wiizebox-body {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.32;
    color: #554f4f;
    text-align: left;
    margin: 8px 0 0;
    position: relative;
    z-index: 1;
}

/* ============================================================
   CTA (button + hint)
   ============================================================ */
#wiizebox-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 6px;
}

#wiizebox-btn {
    background-color: #f87060;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    width: 166px;
    height: 52px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.32;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

#wiizebox-btn:hover {
    background-color: #e85a4a;
    color: #ffffff;
}

#wiizebox-hint {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 300;
    font-size: 11px;
    line-height: 1.32;
    color: #554f4f;
    text-align: center;
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    #wiizebox-section {
        padding: 40px 0;
    }

    #wiizebox-container {
        padding: 0 24px;
    }

    #wiizebox-cards {
        flex-direction: column;
        gap: 36px;
        padding-top: 22px;
    }

    .wiizebox-card {
        width: 100%;
        min-height: auto;
    }

    .wiizebox-card .wiizebox-num {
        font-size: 60px;
        top: -22px;
        right: 12px;
    }

    .wiizebox-card .wiizebox-step {
        font-size: 26px;
    }

    .wiizebox-card .wiizebox-body {
        font-size: 14px;
    }
}

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

    #wiizebox-title {
        font-size: 26px;
    }

    #wiizebox-btn {
        width: 100%;
    }
}


#newsletter-form .form-group:not(.submit-button-wrapper) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

#newsletter-form .submit-button-wrapper {
  flex: 0 0 auto !important;
  width: auto !important;
}

#newsletter-form button[type="submit"] {
  width: auto !important;
  padding: 0 40px !important;
}

#newsletter-form {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  width: 100% !important;
}

#newsletter-form .form-group:not(.submit-button-wrapper) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

#newsletter-form .submit-button-wrapper {
  flex: 0 0 auto !important;
  width: auto !important;
}

#newsletter-form button[type="submit"] {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 40px !important;
}

#newsletter-form input[type="email"] {
  width: 100% !important;
}