/* ============================================
   EFREMOV CAMPAIGN SITE — CSS
   Colors: deep blue, white, red accents (Russian tricolor feel)
   ============================================ */

:root {
    --blue: #1a2a4a;
    --blue-dark: #0f1b33;
    --blue-light: #2a4070;
    --red: #c62828;
    --red-light: #e53935;
    --gold: #c9a84c;
    --white: #ffffff;
    --gray-50: #f7f8fa;
    --gray-100: #eef0f4;
    --gray-200: #dce0e8;
    --gray-400: #9aa3b4;
    --gray-600: #5a6478;
    --gray-800: #2c3345;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 1200px;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(26, 42, 74, 0.08);
    --shadow-lg: 0 12px 48px rgba(26, 42, 74, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section */
.section { padding: 100px 0; }
.section--dark { background: var(--blue); color: var(--white); }
.section--accent { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: var(--white); }
.section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
}
.section--dark .section__title,
.section--accent .section__title { color: var(--white); }
.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin-top: 16px;
    border-radius: 2px;
}
.section__subtitle {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 48px;
}
.section--dark .section__subtitle,
.section--accent .section__subtitle { color: rgba(255,255,255,0.7); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-body);
}
.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn--primary:hover {
    background: var(--red-light);
    border-color: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198,40,40,0.3);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}
.btn--full { width: 100%; }

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.header__logo {
    display: flex;
    flex-direction: column;
}
.logo__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blue);
    line-height: 1.2;
}
.logo__sub {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
}
.nav__link:hover { color: var(--blue); }
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 6px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
    background: var(--red-light);
    transform: translateY(-1px);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.header__burger span {
    width: 24px;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
    border-radius: 2px;
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero__tag {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--blue);
    margin-bottom: 16px;
}
.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 24px;
    letter-spacing: 2px;
}
.hero__desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 520px;
}
.hero__actions {
    display: flex;
    gap: 16px;
}
.hero__actions .btn--outline {
    color: var(--blue);
    border-color: var(--gray-200);
}
.hero__actions .btn--outline:hover {
    border-color: var(--blue);
    background: rgba(26,42,74,0.05);
}
.hero__photo {
    position: relative;
}
.hero__photo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}
.hero__photo::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--red);
    border-radius: var(--radius);
    z-index: -1;
}

/* ============ ABOUT ============ */
.about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 64px;
}
.about__card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}
.about__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}
.about__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.about__card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--blue);
}
.about__card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}
.about__bio {
    max-width: 800px;
}
.about__bio blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--blue);
    border-left: 4px solid var(--red);
    padding-left: 24px;
    margin-bottom: 24px;
}
.about__bio p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* ============ TIMELINE (Service) ============ */
.timeline {
    position: relative;
    margin-top: 48px;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.2);
}
.timeline__item {
    position: relative;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
}
.timeline__item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid var(--white);
}
.timeline__item--accent::before {
    background: var(--red);
    border-color: var(--red-light);
    box-shadow: 0 0 16px rgba(198,40,40,0.5);
}
.timeline__year {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}
.timeline__content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.timeline__content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}
.service__quote {
    margin-top: 48px;
    text-align: center;
}
.service__quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold);
    max-width: 700px;
    margin: 0 auto;
}

/* ============ POETRY ============ */
.poetry__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    margin-bottom: 64px;
}
.poetry__book {
    text-align: center;
}
.book__cover {
    width: 160px;
    height: 220px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 8px 24px rgba(26,42,74,0.2);
    transition: var(--transition);
}
.poetry__book:hover .book__cover {
    transform: translateY(-4px) rotate(-2deg);
    box-shadow: 12px 12px 32px rgba(26,42,74,0.3);
}
.book__icon {
    font-size: 3rem;
    opacity: 0.6;
}
.poetry__book h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--blue);
    margin-bottom: 8px;
}
.poetry__book p {
    font-size: 0.9rem;
    color: var(--gray-600);
    max-width: 300px;
    margin: 0 auto;
}
.poetry__works {
    margin-bottom: 48px;
}
.poetry__works h3,
.poetry__awards h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 20px;
}
.works__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.work__tag {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    color: var(--gray-800);
    transition: var(--transition);
}
.work__tag:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.poetry__awards ul {
    display: grid;
    gap: 12px;
}
.poetry__awards li {
    padding-left: 24px;
    position: relative;
    color: var(--gray-600);
}
.poetry__awards li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}

/* ============ PROGRAM ============ */
.program__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.program__item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
}
.program__item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}
.program__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 16px;
    line-height: 1;
}
.program__item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.program__item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* ============ MEDIA ============ */
.media__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 64px;
}
.media__card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.media__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}
.media__source {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
}
.media__card p {
    font-size: 0.95rem;
    color: var(--gray-800);
    font-weight: 500;
}
.media__social {
    text-align: center;
}
.media__social h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 24px;
}
.social__links {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.social__link svg { flex-shrink: 0; }
.social__link--tg {
    background: #e3f2fd;
    color: #0088cc;
}
.social__link--tg:hover { background: #0088cc; color: var(--white); }
.social__link--vk {
    background: #e8eaf6;
    color: #4a76a8;
}
.social__link--vk:hover { background: #4a76a8; color: var(--white); }
.social__link--ok {
    background: #fff3e0;
    color: #ee8208;
}
.social__link--ok:hover { background: #ee8208; color: var(--white); }

/* ============ CONTACT ============ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 48px;
}
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form__group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
}
.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form__group input::placeholder,
.form__group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--red);
    background: rgba(255,255,255,0.1);
}
.form__group select option {
    background: var(--blue);
    color: var(--white);
}
.form__status {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}
.form__status--success {
    display: block;
    background: rgba(76,175,80,0.15);
    color: #81c784;
    border: 1px solid rgba(76,175,80,0.3);
}
.form__status--error {
    display: block;
    background: rgba(244,67,54,0.15);
    color: #ef9a9a;
    border: 1px solid rgba(244,67,54,0.3);
}
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.info__item h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.info__item a {
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}
.info__item a:hover { color: var(--red-light); }
.info__item p { color: rgba(255,255,255,0.8); }
.info__quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold);
    border-left: 3px solid var(--red);
    padding-left: 20px;
    margin-top: 16px;
}

/* ============ NEWS ============ */
.news__grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}
.news__item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px;
    border-left: 4px solid var(--red);
}
.news__date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 600;
}
.news__item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    margin-top: 8px;
    margin-bottom: 12px;
}
.news__item p {
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.6);
    padding: 32px 0;
    font-size: 0.85rem;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}
.footer__desc {
    font-size: 0.8rem;
    margin-top: 4px;
}
.footer__right { text-align: right; }
.footer__legal {
    margin-top: 4px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__photo { order: -1; max-width: 500px; margin: 0 auto; }
    .hero__title { font-size: 3.5rem; }
    .about__grid { grid-template-columns: repeat(2, 1fr); }
    .poetry__grid { grid-template-columns: repeat(2, 1fr); }
    .media__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section__title { font-size: 2rem; }

    .header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transform: translateX(100%);
        transition: var(--transition);
    }
    .header__nav.open { transform: translateX(0); }
    .header__burger { display: flex; }
    .nav__link { font-size: 1.2rem; }

    .hero { min-height: auto; padding-top: 100px; }
    .hero__title { font-size: 2.8rem; }
    .hero__subtitle { font-size: 1.2rem; }
    .hero__photo::before { display: none; }
    .hero__actions { flex-direction: column; }

    .about__grid { grid-template-columns: 1fr; }
    .poetry__grid { grid-template-columns: 1fr; }
    .program__grid { grid-template-columns: 1fr; }
    .media__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; gap: 48px; }

    .timeline { padding-left: 24px; }
    .timeline__item { grid-template-columns: 80px 1fr; gap: 16px; }
    .timeline__item::before { left: -13px; }

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

    .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer__right { text-align: center; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2.2rem; }
    .service__quote blockquote { font-size: 1.2rem; }
}
