/* ============================================
   Adenia — Flower Shop Stylesheet
   ============================================ */

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

:root {
    --color-primary: #d4677a;
    --color-primary-dark: #c24e62;
    --color-secondary: #f2e3e6;
    --color-accent: #8ba88e;
    --color-accent-dark: #6f8c72;
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-bg: #faf7f5;
    --color-white: #ffffff;
    --color-border: #e8ddda;
    --color-badge-hit: #d4677a;
    --color-badge-sale: #e8a04a;
    --color-badge-new: #8ba88e;

    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */

.header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header__top {
    background: #f8f0ee;
    padding: 6px 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.header__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header__separator {
    color: var(--color-border);
}

.header__phone {
    font-weight: 600;
    color: var(--color-text);
}

.header__main {
    padding: 16px 0;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo__icon {
    font-size: 28px;
}

.logo__text {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.logo__tagline {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 400;
    margin-left: 2px;
    display: none;
}

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

.nav__link {
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Cart Button */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
    flex-shrink: 0;
}

.cart-btn__icon {
    width: 24px;
    height: 24px;
}

.cart-btn__count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

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

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn--sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn--lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    background: linear-gradient(135deg, #f8f0ee 0%, #f0e4e0 50%, #e8d8d4 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '🌸';
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 300px;
    opacity: 0.06;
    transform: rotate(-15deg);
}

.hero__content {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 36px;
    line-height: 1.5;
}

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

/* ============================================
   Features
   ============================================ */

.features {
    padding: 60px 0;
}

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

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-card__icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ============================================
   Sections common
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
}

/* ============================================
   Products Grid
   ============================================ */

.catalog-preview {
    padding: 60px 0;
}

.catalog-preview__footer {
    text-align: center;
    margin-top: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card__image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--color-secondary);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-badge-hit);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.product-card__badge--sale {
    background: var(--color-badge-sale);
}

.product-card__badge--new {
    background: var(--color-badge-new);
}

.product-card__body {
    padding: 16px 20px 20px;
}

.product-card__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-card__desc {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.product-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.product-card__old-price {
    font-size: 14px;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-card__current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   About
   ============================================ */

.about {
    padding: 80px 0;
    background: var(--color-white);
}

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

.about__content p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about__list {
    list-style: none;
    margin-top: 24px;
}

.about__list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
}

.about__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.about__image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ============================================
   Reviews
   ============================================ */

.reviews {
    padding: 60px 0;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 600;
    font-size: 14px;
}

.review-card__date {
    font-size: 12px;
    color: var(--color-text-light);
}

.review-card__rating {
    margin-left: auto;
    color: #f5b342;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    padding: 60px 0;
    background: var(--color-white);
}

.contact-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-section__info p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-details__icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-details__item a {
    font-weight: 600;
    font-size: 16px;
    display: block;
}

.contact-details__item small {
    font-size: 12px;
    color: var(--color-text-light);
}

.contact-section__map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    text-align: center;
    color: var(--color-text-light);
}

.map-overlay span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #2d2d2d;
    color: #ccc;
    padding: 48px 0 0;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer__logo-icon {
    font-size: 24px;
}

.footer__logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
}

.footer__desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer__copy {
    font-size: 13px;
    color: #888;
}

.footer__title {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
}

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

.footer__links a {
    color: #aaa;
    font-size: 14px;
}

.footer__links a:hover {
    color: var(--color-white);
}

.footer__links--contacts li {
    color: #aaa;
    font-size: 14px;
}

.footer__bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #f8f0ee 0%, #f0e4e0 100%);
    padding: 48px 0;
    text-align: center;
}

.page-header__title {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header__subtitle {
    font-size: 16px;
    color: var(--color-text-light);
}

/* ============================================
   Catalog Page
   ============================================ */

.catalog-page {
    padding: 40px 0 60px;
}

.catalog-page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.catalog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn--active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.sort-select {
    font-family: var(--font-main);
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
}

/* ============================================
   Content Sections (Delivery, etc.)
   ============================================ */

.content-section {
    padding: 40px 0 60px;
}

.content-section__card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.content-section__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-secondary);
}

.content-section__card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0 12px;
}

.content-section__card p,
.content-section__card li {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   Delivery Table
   ============================================ */

.delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.delivery-table th,
.delivery-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.delivery-table th {
    font-weight: 700;
    background: var(--color-secondary);
    color: var(--color-text);
}

.delivery-table td {
    color: var(--color-text-light);
}

.delivery-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Payment Methods
   ============================================ */

.payment-methods {
    display: grid;
    gap: 20px;
}

.payment-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.payment-method__icon {
    font-size: 28px;
    flex-shrink: 0;
}

.payment-method h3 {
    margin: 0 0 4px !important;
    font-size: 15px !important;
}

.payment-method p {
    font-size: 14px !important;
    margin: 0;
}

/* ============================================
   Styled List
   ============================================ */

.styled-list {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.styled-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.styled-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--color-primary);
    font-weight: 700;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    padding: 40px 0 60px;
    background: var(--color-bg);
}

.faq__list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq__question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    list-style: none;
    transition: color var(--transition);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    position: absolute;
    right: 24px;
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform var(--transition);
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   Contacts Page
   ============================================ */

.contacts-page {
    padding: 40px 0 60px;
}

.contacts-page__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.contacts-page__card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.contacts-page__card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contacts-page__card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.contacts-page__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts-page__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contacts-page__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    font-weight: 600;
}

.contacts-page__value {
    font-size: 16px;
    font-weight: 600;
}

.contacts-page__hint {
    font-size: 12px;
    color: var(--color-text-light);
}

.contacts-page__map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 350px;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay--large span {
    font-size: 18px;
    margin-bottom: 6px;
}

.map-overlay--large small {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ============================================
   Requisites Table
   ============================================ */

.requisites-table {
    width: 100%;
    border-collapse: collapse;
}

.requisites-table tr {
    border-bottom: 1px solid var(--color-border);
}

.requisites-table tr:last-child {
    border-bottom: none;
}

.requisites-table td {
    padding: 10px 8px;
    font-size: 14px;
}

.requisites-table td:first-child {
    font-weight: 600;
    width: 220px;
    color: var(--color-text);
}

.requisites-table td:last-child {
    color: var(--color-text-light);
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-content {
    padding: 40px 0 60px;
}

.legal-content__body {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content__body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-secondary);
}

.legal-content__body h2:first-child {
    margin-top: 0;
}

.legal-content__body p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content__body ul {
    list-style: none;
    margin-bottom: 16px;
}

.legal-content__body ul li {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    padding: 4px 0 4px 20px;
    position: relative;
}

.legal-content__body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    .header__top {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow);
        padding: 20px;
    }

    .nav--open {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        gap: 16px;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 48px 0;
    }

    .hero__actions {
        flex-direction: column;
    }

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

    .products-grid,
    .products-grid--full {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-card__image {
        height: 200px;
    }

    .product-card__body {
        padding: 12px 14px 16px;
    }

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

    .contact-section__inner {
        grid-template-columns: 1fr;
    }

    .contacts-page__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-page__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-section__card {
        padding: 20px;
    }

    .delivery-table {
        font-size: 13px;
    }

    .delivery-table th,
    .delivery-table td {
        padding: 8px 10px;
    }

    .legal-content__body {
        padding: 24px 20px;
    }

    .page-header {
        padding: 32px 0;
    }
}

@media (max-width: 480px) {
    .features__grid {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .products-grid--full {
        grid-template-columns: 1fr;
    }
}
