/* ============================================
   GastroMaps — Article Styles
   Ресторанная эстетика: тёплая, уютная, премиальная
   Основано на tme-blocked.html разметке
   ============================================ */

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #faf7f2;
    color: #1e293b;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* --- Header (Tailwind-based markup) --- */
body > header {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

body > header .text-2xl { font-size: 1.35rem; }
body > header .font-black { font-weight: 900; }
body > header .text-amber-500 { color: #d97706; }
body > header .text-slate-900 { color: #1e293b; }
body > header .hover\:text-amber-500:hover { color: #d97706; }
body > header a[href*="telegram"] { color: #0088cc; }
body > header a[href*="max.ru"] { color: #6ee7b7; }
body > header a[href*="Бесплатный тест"],
body > header .bg-slate-900 {
    background: #1e293b !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body > header a[href*="Бесплатный тест"]:hover,
body > header .bg-slate-900:hover {
    background: #d97706 !important;
    transform: scale(1.03);
}

/* --- Hero Section (.gm-hero) --- */
.gm-hero {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(180deg, #fff 0%, #faf7f2 100%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    position: relative;
}
.gm-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
    opacity: 0.3;
}
.gm-hero-inner { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
.gm-hero-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.gm-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(217,119,6,0.25);
}
.gm-hero-date { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }
.gm-hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 1rem;
}
.gm-hero p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 700px;
}

/* --- Article Content (.gm-article) --- */
.gm-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}
.gm-article h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.gm-article h3:first-child { margin-top: 0; }
.gm-article p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1rem;
}
.gm-article ul, .gm-article ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.gm-article li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 0.35rem;
    list-style-type: disc;
}
.gm-article ul li::marker { color: #d97706; }

/* Stylish blockquote */
.gm-article blockquote {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(245,158,11,0.08);
}
.gm-article blockquote p { margin-bottom: 0; color: #92400e; }

/* Highlight boxes */
.gm-article .highlight-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
}
.gm-article .highlight-box p { margin-bottom: 0; color: #1e40af; }

.gm-article .warn-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
}
.gm-article .warn-box p { margin-bottom: 0; color: #991b1b; }

.gm-article .success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
}
.gm-article .success-box p { margin-bottom: 0; color: #166534; }

/* --- Promo Banner --- */
.promo-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    border: none;
    padding: 2rem 2rem 2.5rem;
    border-radius: 1.5rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(245,158,11,0.3);
}
.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    animation: promo-pulse 4s ease-in-out infinite;
}
@keyframes promo-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.05) rotate(5deg); opacity: 1; }
}
.promo-banner * { position: relative; z-index: 1; }
.promo-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}
.promo-title {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.promo-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.promo-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.promo-btn-primary {
    display: inline-block;
    background: #fff;
    color: #92400e;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.promo-btn-primary:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.promo-btn-secondary {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
}
.promo-btn-secondary:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.6); }

/* --- CTA Form Section (Tailwind-based) --- */
section.py-20 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
    overflow: hidden;
}
section.py-20::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
section.py-20 .text-3xl {
    font-size: clamp(1.3rem, 3.5vw, 2rem) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    color: #fff;
}
section.py-20 form {
    background: #fff !important;
    padding: 2rem !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2) !important;
}
section.py-20 label {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #475569 !important;
    margin-bottom: 0.5rem;
    display: block;
}
section.py-20 input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    outline: none;
}
section.py-20 input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217,119,6,0.12);
}
section.py-20 button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    font-weight: 800 !important;
    padding: 0.9rem 1.5rem !important;
    border-radius: 0.75rem !important;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(217,119,6,0.3);
}
section.py-20 button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(217,119,6,0.4);
}

/* --- Footer --- */
body > footer {
    background: #0b1120 !important;
    color: #64748b !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
    padding: 2.5rem 0 !important;
}
body > footer a:hover { color: #fff !important; }
body > footer .text-amber-500 { color: #f59e0b; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .gm-hero { padding: 2rem 0 1.5rem; }
    .gm-article { padding: 1.5rem 1.25rem 2rem; }
    .promo-banner { padding: 1.5rem 1.25rem 2rem; margin: 1.5rem 0; }
    section.py-20 form { padding: 1.5rem !important; }
}

/* Helper: hide nav links on mobile (the original has display:none for md) */
@media (max-width: 767px) {
    body > header .hidden.md\:flex { display: none !important; }
}

/* ============================================
   GastroMaps — Premium Article Components
   Cards, Steps, Notices, FAQ, Error list
   ============================================ */

/* --- Notices (Info / Warning / Success) --- */
.gm-notice {
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    padding-left: 4rem;
}
.gm-notice::before {
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    font-size: 1.3rem;
    font-weight: 900;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}
.gm-notice--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.gm-notice--info::before {
    content: 'i';
    background: #3b82f6;
    color: #fff;
}
.gm-notice--warn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.gm-notice--warn::before {
    content: '!';
    background: #ef4444;
    color: #fff;
}
.gm-notice--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1.5rem;
    padding-left: 1.5rem;
}
.gm-notice--success::before { display: none; }

/* --- Checklist (criteria) --- */
ul.gm-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
ul.gm-checklist li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #e8e0d6;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: #334155;
    list-style-type: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
ul.gm-checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    background: #d97706;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    color: #fff;
    position: static;
}
ul.gm-checklist li:nth-child(1)::before { content: '1'; }
ul.gm-checklist li:nth-child(2)::before { content: '2'; }
ul.gm-checklist li:nth-child(3)::before { content: '3'; }
ul.gm-checklist li::marker { display: none; content: ''; }

/* --- Steps (step-by-step) --- */
.gm-steps {
    margin: 1.5rem 0;
}
.gm-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8e0d6;
    border-radius: 1rem;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.gm-step:hover {
    border-color: #d97706;
    box-shadow: 0 4px 16px rgba(217,119,6,0.08);
    transform: translateX(4px);
}
.gm-step-num {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(217,119,6,0.25);
}
.gm-step-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    margin-top: 0;
}
.gm-step-body p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Cards grid (4 benefits) --- */
.gm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.gm-card {
    background: #fff;
    border: 1px solid #e8e0d6;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.gm-card:hover {
    border-color: #d97706;
    box-shadow: 0 8px 24px rgba(217,119,6,0.1);
    transform: translateY(-3px);
}
.gm-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #b45309;
    font-weight: 900;
}
.gm-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.gm-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 0;
}

/* --- Error list (common mistakes) --- */
.gm-error-list {
    margin: 1.5rem 0;
}
.gm-error-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    color: #991b1b;
    line-height: 1.7;
}
.gm-error-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
}

/* --- FAQ --- */
.gm-faq {
    margin: 1.5rem 0;
}
.gm-faq-item {
    margin-bottom: 0.75rem;
    border: 1px solid #e8e0d6;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.gm-faq-q {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gm-faq-q::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: #d97706;
    transition: transform 0.2s;
}
.gm-faq-item:hover .gm-faq-q::after { transform: rotate(45deg); }
.gm-faq-a {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.75;
    border-top: 1px solid #f1ede8;
    padding-top: 0.85rem;
    margin-top: 0;
}
.gm-faq-item:hover { border-color: #d97706; }

/* --- Article h3 with amber left bar --- */
.gm-article h3 {
    position: relative;
    padding-left: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.gm-article h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 999px;
}

/* --- Responsive for new components --- */
@media (max-width: 640px) {
    .gm-cards { grid-template-columns: 1fr; }
    .gm-step { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .gm-notice { padding: 1rem 1.25rem; padding-left: 1.25rem; }
    .gm-notice::before { display: none; }
}
