* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.4;
	position: relative;
}
body .overlay {
	display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url(../img/loading.gif) center no-repeat, rgba(255, 255, 255, .8);
    background-size: 70px;
}
body.loading .overlay {
	display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-header {
    padding: 32px 0 24px;
    border-bottom: 1px solid #eaeaea;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-area {
    text-decoration: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    line-height: 1.2;
}

.logo span {
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0;
    color: #555;
    display: block;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.2s ease;
    padding-bottom: 6px;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover {
    color: #000;
    border-bottom-color: #aaa;
}

.nav-links .active {
    border-bottom-color: #000;
    color: #000;
    font-weight: 600;
}

h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.section {
    margin: 5rem 0;
}

.hero-text {
    font-size: 1.2rem;
    color: #2c2c2c;
    max-width: 700px;
    margin-top: 1rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    transition: all 0.25s;
}

.card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.btn {
    display: inline-block;
    background: transparent;
    border: 1px solid #111;
    padding: 0.8rem 1.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 40px;
    text-decoration: none;
    color: #111;
    transition: all 0.25s;
    cursor: pointer;
    text-align: center;
}

.btn-dark {
    background: #111;
    color: white;
    border: none;
}

.btn-dark:hover {
    background: #2c2c2c;
}

footer {
    margin-top: 5rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid #efefef;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

.tagline {
    font-size: 1rem;
    color: #555;
    max-width: 700px;
}

.magazine-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.magazine-cover {
    flex: 1;
    min-width: 200px;
    background: #f9f9f9;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #ececec;
}

.cover-placeholder {
    background: #eee;
    height: 260px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #777;
    background-image: radial-gradient(circle at 10% 20%, #f0f0f0 2%, transparent 2.5%);
    background-size: 24px 24px;
    margin-bottom: 1rem;
}

.article-card {
    border-top: 1px solid #eaeaea;
    padding: 1.2rem 0;
}

.article-list {
    margin-top: 1rem;
}

.small-meta {
    font-size: 0.8rem;
    color: #888;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group-checkbox {}
.form-group-checkbox label {
    display: flex;
    align-items: start;
    justify-content: start;
}
.form-group-checkbox input[type=checkbox] {
    width: 30px;
    margin: 2px;
}
.form-group-checkbox p,
.form-group-checkbox a {
    font-size: 12px;
    text-align: left;
    text-transform: none;
    font-weight: normal;
    color: #000;
}

label {
    font-size: 0.85rem;
    font-weight: 500;
/*    text-transform: uppercase;*/
    letter-spacing: 0.5px;
    color: #5a5a5a;
    display: block;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    background: #ffffff;
    transition: border 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #000;
}

textarea {
    resize: vertical;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: start;
}

.contact-info {
    background: #fafafa;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pic-main img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты и маленькие десктопы */
@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        margin: 3.5rem 0;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .grid-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        margin: 2.5rem 0;
    }

    .hero-text {
        font-size: 1rem;
        margin-top: 0.75rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }

    .magazine-preview {
        flex-direction: column;
        gap: 1.5rem;
    }

    .magazine-cover {
        min-width: auto;
    }

    .cover-placeholder {
        height: 200px;
    }

    .article-card {
        padding: 1rem 0;
        font-size: 0.9rem;
    }

    .flex-wrap {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-info {
        padding: 1.2rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    input, select, textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 14px;
    }

    footer {
        margin-top: 3rem;
        padding: 1.5rem 0 2rem;
    }

    footer p {
        font-size: 0.7rem;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .logo img {
        width: 100px !important;
    }

    .card {
        padding: 1.2rem;
        border-radius: 20px;
    }

    .section {
        margin: 2rem 0;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .magazine-cover {
        padding: 1rem;
    }

    .cover-placeholder {
        height: 160px;
    }

    .cover-placeholder span {
        font-size: 0.7rem;
    }

    .btn, .btn-dark {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .btn {
        display: block;
    }

    .contact-info {
        padding: 1rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    label {
        font-size: 0.75rem;
    }

    input, select, textarea {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .small-meta {
        font-size: 0.7rem;
    }

    [style*="margin-top: 2rem;"] {
        margin-top: 1rem !important;
    }

    [style*="margin-top: 2.5rem;"] {
        margin-top: 1.5rem !important;
    }
}

/* Альбомная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-links {
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .grid-2col {
        gap: 1rem;
    }
}

/* Улучшение тап-таргетов для мобильных */
@media (max-width: 768px) {
    .nav-links a,
    .btn,
    button,
    [role="button"] {
        touch-action: manipulation;
    }

    input, select, textarea, button {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}