/* Страницы типов сайтов: /services/websites/<slug> */

.wd-breadcrumb {
    padding: 1rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

.wd-breadcrumb a {
    color: #4b8bdc;
    text-decoration: none;
}

.wd-breadcrumb a:hover {
    text-decoration: underline;
}

.wd-hero {
    padding: 60px 0 80px;
    background-color: #0a264e;
    background-image:
        radial-gradient(ellipse 90% 70% at 85% 15%, rgba(75, 139, 220, 0.28) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 10% 90%, rgba(26, 74, 122, 0.55) 0%, transparent 52%),
        linear-gradient(155deg, #0a264e 0%, #123456 42%, #174a75 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(117, 163, 230, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.wd-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.wd-hero-grid--preview {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 32px;
    align-items: center;
}

.wd-hero-preview {
    display: none;
    width: 100%;
}

.wd-preview-browser {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wd-preview-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #eef2f7 0%, #e4eaf2 100%);
    border-bottom: 1px solid #d5dde8;
}

.wd-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wd-preview-dot--red { background: #ff5f57; }
.wd-preview-dot--yellow { background: #febc2e; }
.wd-preview-dot--green { background: #28c840; }

.wd-preview-url {
    flex: 1;
    min-width: 0;
    margin-left: 6px;
    padding: 5px 10px;
    background: #fff;
    border-radius: 6px;
    font-size: 0.72rem;
    color: #5a6578;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #d8e0ea;
}

.wd-preview-expand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #d8e0ea;
    color: #4b8bdc;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.wd-preview-expand:hover {
    background: #4b8bdc;
    color: #fff;
}

.wd-preview-viewport {
    position: relative;
    height: min(62vh, 560px);
    min-height: 420px;
    background: #f4f7fb;
    overflow: hidden;
}

.wd-preview-viewport iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.wd-hero-price-box--mobile {
    display: block;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1025px) {
    .wd-hero-preview {
        display: block;
    }

    .wd-hero-price-box--mobile {
        display: none;
    }
}

.wd-hero-badge {
    display: inline-block;
    background: rgba(75, 139, 220, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.wd-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.wd-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.92;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 28px;
}

.wd-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.wd-hero-stat {
    text-align: center;
}

.wd-hero-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #75a3e6;
}

.wd-hero-stat-text {
    font-size: 0.85rem;
    opacity: 0.85;
}

.wd-hero-price-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    min-width: 220px;
}

.wd-hero-price {
    font-size: 2rem;
    font-weight: 800;
    color: #75a3e6;
}

.wd-hero-price-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 8px 0 4px;
}

.wd-hero-timeline {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.wd-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wd-hero-buttons .btn {
    width: 100%;
    text-align: center;
}

.wd-section {
    padding: 70px 0;
}

.wd-section-alt {
    background: #f8fafd;
}

.wd-section-title {
    text-align: center;
    margin-bottom: 12px;
}

.wd-section-subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.wd-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.wd-audience-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(10, 38, 78, 0.08);
    border-left: 4px solid #4b8bdc;
}

.wd-section-alt .wd-audience-card {
    background: #fff;
}

.wd-audience-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #0a264e;
}

.wd-audience-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.wd-problems-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.wd-problems-list li {
    padding: 16px 20px 16px 48px;
    position: relative;
    background: #fff5f5;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #e53e3e;
    line-height: 1.6;
}

.wd-problems-list li::before {
    content: '!';
    position: absolute;
    left: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    background: #e53e3e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.wd-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.wd-include-block {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(10, 38, 78, 0.08);
}

.wd-section-alt .wd-include-block {
    background: #fff;
}

.wd-include-block h3 {
    color: #0a264e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(75, 139, 220, 0.2);
}

.wd-include-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wd-include-block li {
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.5;
    color: #444;
}

.wd-include-block li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4b8bdc;
    font-weight: 700;
}

.wd-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    counter-reset: wd-step;
}

.wd-process-step {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(10, 38, 78, 0.06);
    position: relative;
}

.wd-process-step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4b8bdc, #0a264e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 14px;
}

.wd-process-step h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #0a264e;
}

.wd-process-step p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

.wd-tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.wd-tech-tag {
    background: rgba(75, 139, 220, 0.12);
    color: #0a264e;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.wd-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.wd-pricing-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    box-shadow: 0 8px 30px rgba(10, 38, 78, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

.wd-pricing-card.popular {
    border: 2px solid #4b8bdc;
    transform: scale(1.02);
}

.wd-pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4b8bdc, #0a264e);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.wd-pricing-card h3 {
    text-align: center;
    margin-bottom: 8px;
}

.wd-pricing-price {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #4b8bdc;
}

.wd-pricing-time {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.wd-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.wd-pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.wd-comparison-wrap {
    overflow-x: auto;
}

.wd-comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 38, 78, 0.08);
}

.wd-comparison-table th,
.wd-comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wd-comparison-table th {
    background: #0a264e;
    color: #fff;
    font-weight: 600;
}

.wd-comparison-table tr:last-child td {
    border-bottom: none;
}

.wd-comparison-table td:first-child {
    font-weight: 600;
    color: #0a264e;
}

.wd-faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.wd-faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(10, 38, 78, 0.06);
}

.wd-faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.wd-faq-question h3 {
    margin: 0;
    font-size: 1rem;
    color: #0a264e;
}

.wd-faq-toggle {
    font-size: 1.4rem;
    color: #4b8bdc;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.wd-faq-item.active .wd-faq-toggle {
    transform: rotate(45deg);
}

.wd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    padding: 0 24px;
}

.wd-faq-item.active .wd-faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}

.wd-faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.wd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.wd-related-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(10, 38, 78, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.wd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 38, 78, 0.12);
    text-decoration: none;
    color: inherit;
}

.wd-related-card h4 {
    color: #0a264e;
    margin-bottom: 8px;
}

.wd-related-price {
    color: #4b8bdc;
    font-weight: 700;
}

.wd-cta-strip {
    background: linear-gradient(135deg, #4b8bdc, #0a264e);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.wd-cta-strip h2 {
    margin-bottom: 12px;
}

.wd-cta-strip p {
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .wd-hero-grid,
    .wd-hero-grid--preview {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .wd-hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .wd-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .wd-hero-stats {
        justify-content: center;
        width: 100%;
    }

    .wd-hero-price-box {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .wd-hero-text .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 340px;
    }

    .wd-hero-text .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .wd-pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .wd-hero {
        padding: 40px 0 60px;
        /* На узком экране — только вертикальный плавный переход без диагонального «среза» */
        background-image:
            radial-gradient(ellipse 120% 55% at 50% -5%, rgba(75, 139, 220, 0.22) 0%, transparent 58%),
            linear-gradient(180deg, #0a264e 0%, #123a62 38%, #174a75 72%, #123456 100%);
    }

    .wd-hero::before {
        background: radial-gradient(ellipse 80% 40% at 50% 100%, rgba(75, 139, 220, 0.08) 0%, transparent 65%);
    }

    .wd-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .wd-hero-stat {
        text-align: center;
        min-width: 0;
    }

    .wd-hero-stat-num {
        font-size: 1.4rem;
    }

    .wd-hero-stat-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .wd-section {
        padding: 50px 0;
    }

    .wd-breadcrumb {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .wd-preview-viewport {
        height: min(52vh, 440px);
        min-height: 320px;
    }
}
