/* 100tkanin.pl — system fonts, minimal, responsive */

:root {
    /* Основной (шапка, кнопки, акценты) */
    --color-accent: #D9A8B2;
    /* Вторичный акцент (hover, важные ссылки) */
    --color-accent-hover: #C07E9E;
    --color-accent-active: #a86a87;
    /* Нейтральный фон */
    --color-bg: #FFF5F8;
    --color-surface: #fff;
    /* Текст основной / второстепенный */
    --color-text: #4A2C38;
    --color-text-muted: #8A6F7A;
    /* Доп. акцент (новинка, бейджи) */
    --color-accent-soft: #F4C7D9;
    --color-border: #ecdde3;
    --color-topbar: #D9A8B2;
    --color-topbar-text: #4A2C38;
    --max-width: 42rem;
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2rem;
    --space-xl: 3rem;
    --radius: 6px;
    --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

/* Top bar */
.top-bar {
    background: var(--color-topbar);
    color: var(--color-topbar-text);
    text-align: center;
    padding: var(--space-xs) var(--space-s);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Header */
.header {
    padding: var(--space-l) 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-m);
}

.logo-img {
    height: 4rem;
    width: auto;
    display: block;
}

.header__text {
    flex: 0 1 auto;
}

.logo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.slogan {
    margin: var(--space-xs) 0 0;
    font-size: 2rem;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .logo-img {
        height: 2.25rem;
    }
}

/* Слайдшоу */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--color-accent-soft);
}

.slideshow__track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow__slide.active {
    opacity: 1;
    z-index: 1;
}

.slideshow__slide img {
    max-width: 860px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
}

.section h2 {
    margin: 0 0 var(--space-m);
    font-size: 1.25rem;
    font-weight: 600;
}

.section p {
    margin: 0 0 var(--space-s);
    max-width: 38rem;
}

.section p:last-child {
    margin-bottom: 0;
}

.section--roczniki {
    position: relative;
}

.section--roczniki::after {
    content: "";
    position: absolute;
    left: var(--space-m);
    right: var(--space-m);
    bottom: 10px;
    height: 0;
    border-bottom: 10px dashed white;
}

/* Hero */
.hero {
    position: relative;
    padding: var(--space-xl) 0;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    left: var(--space-m);
    right: var(--space-m);
    bottom: 10px;
    height: 0;
    border-bottom: 10px dashed white;
}

.hero .container {
    max-width: 36rem;
}

.hero h1 {
    margin: 0 0 var(--space-s);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.hero .lead {
    margin: 0 0 var(--space-m);
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-s);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--color-accent-soft);
    color: var(--color-text);
    border-radius: var(--radius);
}

/* Warunki list */
.warunki-list {
    margin: 0;
    padding-left: 1.25rem;
    max-width: 38rem;
}

.warunki-list li {
    margin-bottom: var(--space-xs);
}

.warunki-list li:last-child {
    margin-bottom: 0;
}

/* CTA section */
.section--cta {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.cta-text {
    margin: 0 0 var(--space-l) !important;
    font-size: 1.0625rem;
}

.cta-button {
    display: inline-block;
    min-height: 48px;
    padding: var(--space-s) var(--space-l);
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cta-button:hover {
    background: var(--color-accent-hover);
}

.cta-button:active {
    background: var(--color-accent-active);
    transform: scale(0.98);
}

.cta-button:focus {
    outline: 2px solid var(--color-accent-hover);
    outline-offset: 2px;
}

/* Gallery: сетка 3×4 превью */
.gallery {
    padding: var(--space-xl) 0;
    background: var(--color-surface);
}

.gallery__container {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
}

.gallery__link {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-accent-soft);
    aspect-ratio: 1;
}

.gallery__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.gallery__link:hover img {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-s);
    }
}

/* Полноэкранный просмотр фото */
.gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(74, 44, 56, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-m);
    cursor: pointer;
}

.gallery-overlay[hidden] {
    display: none !important;
}

.gallery-overlay__close {
    position: absolute;
    top: var(--space-s);
    right: var(--space-s);
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s ease;
}

.gallery-overlay__close:hover,
.gallery-overlay__close:focus {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-overlay__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    border-radius: var(--radius);
}

/* Footer */
.footer {
    padding: var(--space-l) 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.footer-info {
    margin-bottom: var(--space-s);
}

.footer-info p {
    margin: 0 0 var(--space-xs);
    max-width: none;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.footer-year {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.85;
}

/* Responsive: narrow */
@media (max-width: 360px) {
    .container {
        padding: 0 var(--space-s);
    }

    .badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Min touch target for links/buttons already 48px on CTA */
a:focus-visible {
    outline: 2px solid var(--color-accent-hover);
    outline-offset: 2px;
}
