/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
}

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.logo:hover {
    color: #1d4ed8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    color: #2563eb;
}

nav a.active {
    color: #2563eb;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
}

/* Главный контент */
main {
    min-height: 60vh;
    padding: 20px 0;
}

.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1e293b;
}

.hero p {
    font-size: 20px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
}

.diagram {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #0f172a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.diagram span {
    color: #2563eb;
    font-weight: bold;
}

/* Карточки примеров */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.example-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.example-card code {
    display: block;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 15px;
    overflow-x: auto;
}

.example-card h3 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 18px;
}

.example-card p {
    color: #64748b;
    font-size: 15px;
}

/* Шаги */
.steps {
    margin: 50px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.step-number {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.step-content p {
    color: #64748b;
}

/* Контакты */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.contact-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-card p {
    color: #64748b;
    margin-bottom: 10px;
}

.contact-email {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #2563eb;
    text-decoration: none;
    padding: 10px 15px;
    background: #eff6ff;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
}

.contact-email:hover {
    background: #dbeafe;
}

/* Кнопки */
.cta-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.cta-button:hover {
    background: #1d4ed8;
}

/* Подвал */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-links a:hover {
    color: #2563eb;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .diagram {
        font-size: 16px;
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Добавляем в конец файла */

.info-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
    color: #856404;
}

.info-box h3 {
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box h3::before {
    content: "ℹ️";
}

.format-examples {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #2563eb;
}

.format-examples h4 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 16px;
}

.format-examples ul {
    list-style: none;
    padding-left: 0;
}

.format-examples li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.format-examples li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
}

/* Добавляем в конец файла style.css */

/* Адаптивность для формы */
@media (max-width: 768px) {
    iframe[name="ya-form-6945b734d0468814e13691e5"] {
        height: 700px; /* Увеличиваем высоту для мобильных */
    }
}

@media (max-width: 480px) {
    iframe[name="ya-form-6945b734d0468814e13691e5"] {
        height: 800px; /* Еще больше для маленьких экранов */
    }
}

.form-container {
    padding: 20px;
}

.form-container iframe {
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .form-container iframe {
        height: 700px;
    }
}

@media (max-width: 480px) {
    .form-container iframe {
        height: 800px;
    }
}