/* ---------------------- RESET ---------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-text);
    line-height: 1.8;
}

p {
    max-width: 640px;
}

h1, h2, h3 {
    letter-spacing: 0.02em;
}

/* ---------------------- CONTAINER ---------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* ---------------------- HEADER ---------------------- */
.header {
    position: sticky;
    top: 0;
    padding: 1.5rem 0;
    background: rgba(247, 242, 237, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 10;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: 500;
}
.logo-img {
    height: 60px; /* высота логотипа, можно подправить */
    width: auto;
    display: block;
}


.nav a {
    font-family: var(--font-title);
    margin-left: 1.8rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.2rem;
}

/* ---------------------- HERO ---------------------- */
.hero {
    height: 70vh;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(247, 242, 237, 0.55);
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(247, 242, 237, 0.85);
    padding: 2.5rem;
    text-align: center;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* центрируем по горизонтали */
    justify-content: center; /* центрируем по вертикали */
    width: 90%;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
}

.hero p {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ---------------------- CATEGORIES ---------------------- */
.categories {
    margin: 3rem auto;
}

.categories h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;

    background: rgba(247, 243, 237, 0.808);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    cursor: pointer;

    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);

    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.category-card:hover {
    background: rgba(242, 238, 230, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    color: var(--text-main);
}

/* ---------------------- ABOUT ---------------------- */
.about-home {
    padding: 6rem 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.15)
    );
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-family: var(--font-text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    transition: opacity 0.5s ease;
}

/* ---------------------- FOOTER ---------------------- */
.footer {
    padding: 4rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.3);
    border-top: 1px solid var(--border-soft);
}

.footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 300px;
}

.footer-column p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Ссылки делают текст футера однородным */
.footer .footer-content a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer .footer-content a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-column {
        min-width: 100%;
    }
}


/* ---------------------- PAGES ---------------------- */
.page-title-container {
    display: block;
    max-width: 500px;
    padding: 1rem 2rem;
    margin: 0.5rem auto 2rem auto;
    background: rgba(250, 245, 240, 0.85);
    border-radius: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    text-align: center;
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.3s ease, transform 0.3s ease;
}

.page-title-container:hover {
    background: rgba(255, 250, 245, 0.95);
    transform: translateY(-2px);
}

.page {
    padding-top: 3rem;
    padding-bottom: 5rem;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.15)
    );
}

.page-title,
.about-page,
.news-list {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* ---------------------- NEWS ---------------------- */
.news-list {
    max-width: 700px;
    margin: 0 auto;
}

.news-item {
    margin-bottom: 3rem;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0.4rem;
}

.news-item h2 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.news-item img {
    width: 100%;
    max-width: 700px;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

/* ---------------------- ABOUT PAGE ---------------------- */

.about-page {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем все дочерние элементы */
}

.about-page img {
    width: 100%;
    max-width: 750px; /* Такая же ширина как у контейнера */
    border-radius: 1rem;
    margin: 2rem 0;
}

.about-page p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    width: 100%; /* Занимает всю ширину .about-page */
    max-width: 750px; /* Ограничиваем той же шириной */
}


/* ---------------------- ANIMATIONS ---------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }

a, .category-card {
    transition: all 0.3s ease;
}

.nav a:hover {
    opacity: 0.6;
}

img {
    display: block;
}

/* ---------------------- CATALOG ---------------------- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.product-card h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-align: left;       /* ровное выравнивание заголовка */
    padding-left: 0;        /* убираем смещение */
}

.product-card span {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: #555;
    display: block;
    text-align: left;       /* ровное выравнивание под заголовком */
    padding-left: 0;        /* убираем смещение */
    margin-top: 0.1rem;
}


.product-details {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: #555; /* современный мягкий серый */
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left; /* выравнивание характеристик чуть левее для читаемости */
    margin-top: 0.5rem;
    padding-left: 0.5rem; /* чтобы точки не прилегали к границе */
}

.product-details p {
    position: relative;
    padding-left: 1.2em; /* отступ для точки */
    margin: 0;
}

/* Точки только для характеристик, исключаем strong */
.product-details p:not(:has(strong))::before {
    content: "•"; /* или "-" если хочешь тире */
    position: absolute;
    left: 0;
    color: var(--accent); /* цвет точки */
    font-size: 1em;
    line-height: 1.5;
}

.product-details strong {
    font-size: 1.1rem;
    color: #555; /* более аккуратный, мягкий цвет */
    margin-top: 0.3rem;
    padding-left: 0; /* убираем отступ, чтобы не было точки */
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 0.8rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 1.5rem;
}

.product-card:hover img {
    transform: scale(1.04);
}
