/* ============================================================
   SERVICE.CSS — стили шаблонов "Страница услуги" и "Список услуг"
   База-утилиты + блок заказа + тизеры + аккордеон + статья .wd-*
   Сайдбар и лейаут — в style.css. Hero — в hero.css.
   ============================================================ */

/* === 0. АЛИАСЫ ПЕРЕМЕННЫХ (оригинал → DevSEO) === */
:root {
    --black-bg: var(--devseo-black-bg);
    --darker-bg: var(--devseo-darker-bg);
    --card-bg: var(--devseo-card-bg);
    --stroke-color: var(--devseo-stroke-color);
    --title-text: var(--devseo-title-text);
    --basic-text: var(--devseo-basic-text);
    --secondary-text: var(--devseo-secondary-text);
    --theme-base-color: var(--devseo-base-color);
    --theme-more-color: var(--devseo-more-color);
    --theme-page-width: var(--devseo-page-width);
    --theme-page-width-padding: var(--devseo-page-width-padding);
    --outer-border-radius: var(--devseo-outer-border-radius);
}

/* ============================================================
   ЧАСТЬ 1. БАЗА
   ============================================================ */

/* --- 1.1 Каркас --- */
.main { flex: 1; }
.container { position: relative; width: 100%; }
.maxwidth-theme {
    max-width: calc(var(--theme-page-width) + var(--theme-page-width-padding) * 2);
    margin-left: auto; margin-right: auto;
    padding-left: var(--theme-page-width-padding);
    padding-right: var(--theme-page-width-padding);
    width: 100%;
}
.col-md-12 { width: 100%; }
.detail { position: relative; }
.clearfix::after { content: ""; display: block; clear: both; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-1 { z-index: 1; } .z-2 { z-index: 2; } .z-4 { z-index: 4; }

/* --- 1.2 Flex / Grid утилиты --- */
.line-block { display: flex; flex-wrap: wrap; }
.line-block--gap { gap: var(--gap, 16px); }
.line-block--gap-6 { --gap: 6px; }
.line-block--gap-8 { --gap: 8px; }
.line-block--gap-12 { --gap: 12px; }
.line-block--gap-16 { --gap: 16px; }
.line-block--gap-20 { --gap: 20px; }
.line-block--gap-24 { --gap: 24px; }
.line-block--gap-26 { --gap: 26px; }
.line-block--gap-32 { --gap: 32px; }
.line-block--align-normal { align-items: flex-start; }
.line-block__item { min-width: 0; }
.flexbox { display: flex; }
.flexbox--direction-column { flex-direction: column; }
.flexbox--align-self-center { align-self: center; }
.flexbox--justify-beetwen { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-grow-1 { flex-grow: 1; }
.no-shrinked { flex-shrink: 0; }
.height-100 { height: 100%; }
.overflow-hidden { overflow: hidden; }
.grid-list { display: grid; }
.grid-list--gap-dynamic { gap: 20px; }
.grid-list--gap-20 { gap: 20px; }
.grid-list--items { grid-template-columns: repeat(var(--items-count, 1), 1fr); }
@media (min-width: 992px) { .grid-list--items-2-from-992 { --items-count: 2; } }
@media (min-width: 1200px) { .grid-list--items-3-from-1200 { --items-count: 3; } .grid-list--items-4-from-1200 { --items-count: 4; } }
@media (max-width: 991px) { .grid-list--items-2-991 { --items-count: 2; } .flexbox--direction-column-to-991 { flex-direction: column; } }
@media (max-width: 767px) { .grid-list--items-2 { --items-count: 2; } .flexbox--direction-column-to-768 { flex-direction: column; } }

/* --- 1.3 Типографика / отступы --- */
.font_12 { font-size: 12px; } .font_14 { font-size: 14px; } .font_15 { font-size: 15px; }
.font_16 { font-size: 16px; } .font_17 { font-size: 17px; } .font_18 { font-size: 18px; }
.font_20 { font-size: 20px; } .font_22 { font-size: 22px; } .font_24 { font-size: 24px; }
.font_28 { font-size: 28px; }
.font_80 { font-size: clamp(32px, 4.5vw, 64px); line-height: 1.1; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; }
.mt { margin-top: var(--mt, 16px); }
.mt--0 { --mt: 0; } .mt--4 { --mt: 4px; } .mt--8 { --mt: 8px; }
.mt--20 { --mt: 20px; } .mt--24 { --mt: 24px; } .mt--32 { --mt: 32px; }
.mb { margin-bottom: var(--mb, 16px); }
.mb--0 { --mb: 0; } .mb--8 { --mb: 8px; } .mb--20 { --mb: 20px; }
.mb--32 { --mb: 32px; } .mb--48 { --mb: 48px; }
.p { padding: var(--p, 16px); } .p--24 { --p: 24px; } .p--32 { --p: 32px; }
.pi { padding-left: var(--pi); padding-right: var(--pi); } .pi--24 { --pi: 24px; } .pi--32 { --pi: 32px; }
.pv { padding-top: var(--pv); padding-bottom: var(--pv); } .pv--24 { --pv: 24px; } .pv--32 { --pv: 32px; } .pv--40 { --pv: 40px; }
.mi { margin-left: var(--mi); margin-right: var(--mi); } .mi--32 { --mi: 32px; }
.pt { padding-top: var(--pt); } .pt--24 { --pt: 24px; }
.no-margin-p p { margin: 0; }
.lineclamp-3, .lineclamp-4, .lineclamp-5, .lineclamp-10 {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.lineclamp-3 { -webkit-line-clamp: 3; }
.lineclamp-4 { -webkit-line-clamp: 4; }
.lineclamp-5 { -webkit-line-clamp: 5; }
.lineclamp-10 { -webkit-line-clamp: 10; }

/* --- 1.4 Цвета / фоны / рамки --- */
.switcher-title, .title-text, .color_dark, .dark_link { color: var(--title-text); }
.dark_link { text-decoration: none; transition: color .3s; }
.dark_link:hover { color: var(--theme-base-color); }
.secondary-text { color: var(--secondary-text); }
.base-text { color: var(--basic-text); }
.white_text_black_reverse { color: #fff; }
.grey-bg { background: var(--darker-bg); }
.bordered { border: 1px solid var(--stroke-color); }
.rounded-n { border-radius: var(--outer-border-radius); }
.shadow-hovered { transition: box-shadow .3s ease, transform .3s ease; }
.shadow-hovered:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }

/* --- 1.5 Кнопки --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 50px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: all .3s ease; line-height: 1.2;
}
.btn-default { background: var(--theme-base-color); color: #fff; }
.btn-default:hover { background: #0d4a75;  }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-wide { width: 100%; }
.btn-success { background: #4caf50; color: #fff; }
.btn-success:hover { background: #3d8b40; color: #fff; }
.btn-danger { background: var(--theme-more-color); color: #fff; }
.btn-danger:hover { background: #7a0004; color: #fff; }
.btn-theme { background: var(--theme-base-color); color: #fff; }
.btn-transparent-border {    border-color: rgba(255,255,255,.4); color: #fff; }
.btn-transparent-border:hover { color: #fff; }

/* --- 1.6 Блок заказа (.order_sale) --- */
.services-detail__bottom-info { margin-bottom: 40px; }
.gap { gap: var(--gap, 16px); } .gap--40 { --gap: 40px; }
.detail-block { margin-bottom: 40px; }
.ordered-block { position: relative; }
.order_sale {
    border-radius: var(--outer-border-radius); overflow: hidden;
    background: linear-gradient(120deg, #0b2540 0%, #123f63 45%, #17558a 100%);
    border: none;
}
.order_sale .grey-bg { background: transparent; }
.order_sale .rounded-n { border: none; }
.order-info-block { color: #fff; }
.order-info-block .text { color: rgba(255,255,255,.92); }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.price__new-val { color: #fff; font-size: 22px; white-space: nowrap; }
.price__economy { margin-top: 2px; }
.sticker__item {
    display: inline-block; padding: 4px 10px; border-radius: 8px;
    background: #ffe066; color: #333; font-weight: 600;
}
.order-info-btns .btn-transparent-border {
    width: 56px; height: 56px; padding: 0; border-radius: 50%;
    font-size: 20px; font-weight: 700;
}
.buy_block .btn { min-width: 180px; }

/* --- 1.7 Тизеры (.tizers-list) --- */
.tizers-list__item { background: var(--card-bg); }
.tizers-list__item-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.tizers-list__item-image-wrapper--ICONS { width: 72px; height: 72px; }
.tizers-list__item-image-picture {
    width: 72px; height: 72px;
    background-size: contain; background-repeat: no-repeat; background-position: center;
}
.tizers-list__item-name { display: block; }
.tizers-list__item-descr { line-height: 1.45; }

/* --- 1.8 Аккордеон / FAQ --- */
.faq-list { margin-top: 20px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion.no-gap { gap: 0; }
.item-accordion-wrapper { background: var(--darker-bg); overflow: hidden; }
.accordion.no-gap .item-accordion-wrapper { border: none; box-shadow: none; border-radius: 0; }
.accordion.no-gap .item-accordion-wrapper:first-child { border-radius: 16px 16px 0 0; }
.accordion.no-gap .item-accordion-wrapper:last-child { border-radius: 0 0 16px 16px; }
.accordion-head {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; cursor: pointer; text-decoration: none;
}
.accordion-head .svg.inline.wrapper { margin-left: auto; line-height: 0; transition: transform .3s ease; }
.accordion-head.accordion-open .svg.inline.wrapper { transform: rotate(180deg); }
.panel-collapse { display: none; }
.panel-collapse.in { display: block; }
.accordion-body { padding: 0 24px 24px; }
.accordion-preview p { margin: 0 0 12px; }
.accordion-btn { margin-top: 12px; }

/* ============================================================
   ЧАСТЬ 2. СТАТЬЯ .web-dev (.wd-*)
   ============================================================ */

.web-dev * { box-sizing: border-box; }
.web-dev { font-size: 16px; line-height: 1.7; color: #1e293b; }
.web-dev p { margin-bottom: 16px; }
.wd-hero-content strong { color: #63efe2; }
.wd-definition-content strong { color: #abe5ff; }
.web-dev h2 { font-size: 28px; font-weight: 700; margin: 0 0 16px; line-height: 1.3; }
.web-dev h3 { font-size: 22px; font-weight: 700; margin: 0 0 14px; line-height: 1.3; }
.web-dev h4 { font-size: 18px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; }
.web-dev ul { list-style: none; padding-left: 0; margin: 0 0 18px 0; }

/* wd-hero */
.wd-hero { border-radius: 20px; background: linear-gradient(160deg, #0f172a 0%, #0f766e 50%, #14b8a6 100%); padding: 52px 48px; margin-bottom: 36px; position: relative; overflow: hidden; display: grid; grid-template-columns: 3fr 1fr; gap: 40px; align-items: center; }
.wd-hero::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,0.15) 0%, transparent 70%); top: -200px; right: -100px; }
.wd-hero::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); bottom: -100px; left: -50px; }
.wd-hero * { position: relative; z-index: 1; }
.wd-hero-content h2 { color: #fff; font-size: 34px; margin-bottom: 18px; }
.wd-hero-content p { color: rgba(255,255,255,0.9); font-size: 17px; }
.wd-hero-visual { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.wd-hero-code-block { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 24px; width: 100%; backdrop-filter: blur(8px); }
.wd-hero-code-dots { display: flex; gap: 8px; margin-bottom: 16px; }
.wd-hero-code-dot { width: 12px; height: 12px; border-radius: 50%; }
.wd-hero-code-dot--r { background: #ef4444; }
.wd-hero-code-dot--y { background: #eab308; }
.wd-hero-code-dot--g { background: #22c55e; }
.wd-hero-code-lines { display: flex; flex-direction: column; gap: 8px; }
.wd-hero-code-line { height: 8px; border-radius: 4px; }
.wd-hero-code-line--1 { width: 60%; background: rgba(20,184,166,0.5); }
.wd-hero-code-line--2 { width: 80%; background: rgba(56,189,248,0.4); }
.wd-hero-code-line--3 { width: 45%; background: rgba(168,85,247,0.4); }
.wd-hero-code-line--4 { width: 70%; background: rgba(20,184,166,0.3); }
.wd-hero-code-line--5 { width: 55%; background: rgba(56,189,248,0.3); }
.wd-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.wd-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: rgba(255,255,255,0.85); backdrop-filter: blur(4px); }
.wd-hero-badge svg { width: 14px; height: 14px; color: #14b8a6; }

/* wd-definition */
.wd-definition { border-radius: 20px; background: linear-gradient(145deg, #1e3a5f, #116aa9, #38bdf8); padding: 36px 40px; margin-bottom: 36px; display: flex; gap: 28px; align-items: flex-start; }
.wd-definition * { color: #fff; }
.wd-definition-icon { flex-shrink: 0; width: 64px; height: 64px; background: rgba(255,255,255,0.12); border-radius: 16px; display: flex; align-items: center; justify-content: center; animation: wdFloat 3s ease-in-out infinite; }
.wd-definition-icon svg { width: 34px; height: 34px; }
.wd-definition-content h3 { color: #fff; margin-bottom: 10px; }
.wd-definition-content p { color: rgba(255,255,255,0.92); margin-bottom: 0; }
@keyframes wdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* wd-section-header */
.wd-section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; margin-top: 75px; }
.wd-section-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; animation: wdFloat 3s ease-in-out infinite; }
.wd-section-icon--teal { background: linear-gradient(145deg, #0f766e, #14b8a6); }
.wd-section-icon--blue { background: linear-gradient(145deg, #0f4c75, #1a7bc4); }
.wd-section-icon--green { background: linear-gradient(145deg, #15803d, #22c55e); }
.wd-section-icon--dark { background: linear-gradient(135deg, #0f172a, #1e3799); }
.wd-section-icon--purple { background: linear-gradient(145deg, #7c3aed, #a78bfa); }
.wd-section-icon svg { width: 26px; height: 26px; color: #fff; }

/* wd-types */
.wd-types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.wd-type-card { border-radius: 20px; padding: 32px 26px; position: relative; overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease; min-height: 320px; display: flex; flex-direction: column; }
.wd-type-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
.wd-type-card--1 { background: linear-gradient(155deg, #0f766e, #0d9488, #14b8a6); }
.wd-type-card--2 { background: linear-gradient(155deg, #0f4c75, #1666a1, #1a7bc4); }
.wd-type-card--3 { background: linear-gradient(155deg, #15803d, #16a34a, #22c55e); }
.wd-type-card h4, .wd-type-card p { color: #fff; }
.wd-type-card-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.12); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; animation: wdFloat 3.5s ease-in-out infinite; }
.wd-type-card-icon svg { width: 32px; height: 32px; color: #fff; }
.wd-type-card-tag { display: inline-block; background: rgba(255,255,255,0.15); border-radius: 8px; padding: 4px 12px; font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 14px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.wd-type-card h4 { font-size: 20px; margin-bottom: 12px; }
.wd-type-card p { font-size: 15px; color: rgba(255,255,255,0.88); flex: 1; }
.wd-type-card-price { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 15px; color: rgba(255,255,255,0.9); font-weight: 600; }

/* wd-info-banner */
.wd-info-banner { border-radius: 20px; padding: 28px 32px; margin-bottom: 36px; display: flex; gap: 20px; align-items: center; background: linear-gradient(145deg, #b45309, #d97706, #f59e0b); }
.wd-info-banner-icon { flex-shrink: 0; width: 48px; height: 48px; background: rgba(255,255,255,0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.wd-info-banner-icon svg { width: 26px; height: 26px; color: #fff; }
.wd-info-banner p { color: #fff; margin-bottom: 0; font-size: 15px; }
.wd-info-banner p strong { color: #fff; }

/* wd-process */
.wd-process-section { margin-bottom: 36px; }
.wd-process-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.wd-process-card { border-radius: 20px; padding: 28px 26px; display: flex; gap: 18px; align-items: flex-start; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.wd-process-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }
.wd-process-card--a { background: linear-gradient(145deg, #0f172a, #1e3a5f, #1e3799); }
.wd-process-card--b { background: linear-gradient(145deg, #0f766e, #0d9488, #14b8a6); }
.wd-process-card--c { background: linear-gradient(145deg, #15803d, #16a34a, #22c55e); }
.wd-process-card--d { background: linear-gradient(145deg, #0f4c75, #1666a1, #1a7bc4); }
.wd-process-card--e { background: linear-gradient(145deg, #7c3aed, #8b5cf6, #a78bfa); }
.wd-process-card--f { background: linear-gradient(145deg, #b45309, #d97706, #f59e0b); }
.wd-process-card h4, .wd-process-card p { color: #fff; }
.wd-process-card p { margin-bottom: 0; color: rgba(255,255,255,0.88); font-size: 14px; }
.wd-process-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; }
.wd-process-info { flex: 1; }
.wd-process-info h4 { margin-bottom: 6px; font-size: 17px; }

/* wd-tech */
.wd-tech-section { margin-bottom: 36px; }
.wd-tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.wd-tech-item { border-radius: 20px; padding: 24px 18px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; background: linear-gradient(155deg, #1e293b, #334155, #475569); }
.wd-tech-item:hover { transform: translateY(-5px) rotate(1deg); box-shadow: 0 14px 36px rgba(0,0,0,0.15); }
.wd-tech-item h4, .wd-tech-item p { color: #fff; }
.wd-tech-item p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 0; }
.wd-tech-icon { width: 56px; height: 56px; margin: 0 auto 12px; background: rgba(255,255,255,0.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; animation: wdFloat 3s ease-in-out infinite; }
.wd-tech-icon svg { width: 30px; height: 30px; color: #14b8a6; }

/* wd-advantages */
.wd-advantages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 36px; }
.wd-advantage { border-radius: 20px; padding: 30px 28px; display: flex; gap: 18px; align-items: flex-start; transition: transform 0.3s ease; }
.wd-advantage:hover { transform: translateY(-4px); }
.wd-advantage--1 { background: linear-gradient(145deg, #0f4c75, #1666a1, #1a7bc4); }
.wd-advantage--2 { background: linear-gradient(145deg, #0f766e, #0d9488, #14b8a6); }
.wd-advantage--3 { background: linear-gradient(145deg, #15803d, #16a34a, #22c55e); }
.wd-advantage--4 { background: linear-gradient(145deg, #7c3aed, #8b5cf6, #a78bfa); }
.wd-advantage--5 { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e3799 100%); }
.wd-advantage--6 { background: linear-gradient(145deg, #b45309, #d97706, #f59e0b); }
.wd-advantage h4, .wd-advantage p { color: #fff; }
.wd-advantage p { margin-bottom: 0; font-size: 14px; color: rgba(255,255,255,0.88); }
.wd-advantage-icon { flex-shrink: 0; width: 50px; height: 50px; background: rgba(255,255,255,0.12); border-radius: 14px; display: flex; align-items: center; justify-content: center; animation: wdFloat 3s ease-in-out infinite; }
.wd-advantage-icon svg { width: 26px; height: 26px; color: #fff; }
.wd-advantage-content { flex: 1; }
.wd-advantage-content h4 { margin-bottom: 6px; font-size: 17px; }

/* wd-table */
.wd-table-section { margin-bottom: 36px; }
.wd-table-wrap { border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e3799 100%); padding: 3px; }
.wd-table-inner { border-radius: 18px; overflow: hidden; }
.wd-table { width: 100%; border-collapse: collapse; }
.wd-table thead { background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.wd-table thead th { padding: 18px 22px; color: #fff; font-weight: 600; text-align: left; font-size: 15px; border-bottom: 2px solid rgba(255,255,255,0.1); }
.wd-table tbody tr { background: rgba(15,23,42,0.85); border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.2s; }
.wd-table tbody tr:hover { background: rgba(30,58,95,0.9); }
.wd-table tbody tr:last-child { border-bottom: none; }
.wd-table td { padding: 16px 22px; font-size: 15px; color: rgba(255,255,255,0.85); }
.wd-table td:first-child { font-weight: 600; color: #fff; }

/* wd-faq */
.wd-faq-section { margin-bottom: 36px; }
.wd-faq-list { display: flex; flex-direction: column; gap: 14px; }
.wd-faq-item { border-radius: 20px; padding: 28px 30px; transition: transform 0.3s ease; }
.wd-faq-item:hover { transform: translateX(4px); }
.wd-faq-item:nth-child(odd) { background: linear-gradient(145deg, #0f766e, #0d9488, #14b8a6); }
.wd-faq-item:nth-child(even) { background: linear-gradient(145deg, #0f4c75, #1666a1, #1a7bc4); }
.wd-faq-item-inner { display: flex; gap: 16px; align-items: flex-start; }
.wd-faq-icon { flex-shrink: 0; width: 40px; height: 40px; background: rgba(255,255,255,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.wd-faq-icon svg { width: 22px; height: 22px; color: #fff; }
.wd-faq-content { flex: 1; }
.wd-faq-content p { color: #fff; margin-bottom: 0; }
.wd-faq-content p strong { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; }
.wd-faq-content p:last-child { color: rgba(255,255,255,0.88); font-size: 15px; }

/* wd-cta */
.wd-cta { border-radius: 20px; background: linear-gradient(160deg, #0f172a 0%, #0f766e 50%, #14b8a6 100%); padding: 44px 48px; text-align: center; position: relative; overflow: hidden; }
.wd-cta::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%); top: -300px; right: -200px; }
.wd-cta * { position: relative; z-index: 1; }
.wd-cta h3 { color: #fff; font-size: 28px; margin-bottom: 14px; }
.wd-cta p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 0; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============================================================
   ЧАСТЬ 3. SERVICES LIST — общая страница услуг
   ============================================================ */
.hero--list { min-height: auto; padding: 56px 0; padding-bottom: 20px; }
.hero--list .hero__content { max-width: 70%; }

.services-section { padding: 48px 0 64px; }

.services-list-outer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.services-list__wrapper { min-width: 0; }

.services-list__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--devseo-outer-border-radius);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--devseo-darker-bg);
    transition: transform .3s ease, box-shadow .3s ease;
}
.services-list__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.14);
}

.services-list__item-image-wrapper { position: absolute; inset: 0; overflow: hidden; }
.services-list__item-image-wrapper .shine { display: block; width: 100%; height: 100%; transition: transform .8s ease; }
.services-list__item:hover .shine { transform: scale(1.08); }
.services-list__item-image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.services-list__item-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 25%, rgba(15,23,42,.45) 60%, rgba(15,23,42,.92) 100%);
}

.services-list__item-content { position: relative; z-index: 2; padding: 32px; }
.services-list__link { position: absolute; inset: 0; z-index: 3; }
.services-list__item-content .catalog-list__info-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}
.services-list__item-content .items-row-list__content-inner {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.services-list__price {
    margin-top: 14px;
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.services-cta { padding: 0 0 80px; }

/* ============================================================
   АДАПТИВ (единый блок)
   ============================================================ */
@media (max-width: 1200px) {
    .services-list-outer { grid-template-columns: repeat(2, 1fr); }
    .hero--list .hero__content { max-width: 100%; }
}
@media (max-width: 991px) {
    .detail-block,
    .ordered-block,
    .web-dev { max-width: 100%; }
    .wd-hero { grid-template-columns: 1fr; padding: 36px 28px; }
    .wd-hero-visual { display: none; }
    .wd-hero-content h2 { font-size: 28px; }
    .wd-types-grid { grid-template-columns: 1fr; }
    .wd-process-row { grid-template-columns: 1fr; }
    .wd-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .wd-advantages-grid { grid-template-columns: 1fr; }
    .wd-definition { flex-direction: column; padding: 28px 24px; }
    .wd-info-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 767px) {
    .services-list-outer { grid-template-columns: 1fr; }
    .services-list__item { min-height: 380px; }
    .services-section { padding: 32px 0 48px; }
    .services-cta { padding-bottom: 48px; }
    .order-info-btns .btn { width: 100%; }
    .buy_block .btn { min-width: 0; }
    .accordion-head { padding: 16px 18px; }
    .accordion-body { padding: 0 18px 18px; }
}
@media (max-width: 575px) {
    .wd-hero { padding: 28px 20px; }
    .wd-hero-content h2 { font-size: 24px; }
    .wd-tech-grid { grid-template-columns: 1fr; }
    .wd-table-wrap { overflow-x: auto; }
    .wd-cta { padding: 32px 22px; }
    .wd-cta h3 { font-size: 22px; }
    .wd-faq-item { padding: 22px 20px; }
    .wd-faq-item-inner { flex-direction: column; }
    .wd-type-card { min-height: auto; }
    .wd-advantages-grid { gap: 14px; }
    .wd-advantage { flex-direction: column; }
}

/* Защита от длинных строк без пробелов */
.web-dev, .hero__text, .hero__title, .order-info-block .text {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ============================================================
   ТЁМНАЯ ТЕМА
   ============================================================ */
body.theme-dark .tizers-list__item { background: var(--card-bg); }
body.theme-dark .item-accordion-wrapper { background: var(--card-bg); }
body.theme-dark .order_sale { background: linear-gradient(120deg, #0a1c30 0%, #0f3350 45%, #124a75 100%); }
body.theme-dark .web-dev { color: #e2e8f0; }
body.theme-dark .web-dev h2, body.theme-dark .web-dev h3, body.theme-dark .web-dev h4 { color: #f1f5f9; }
body.theme-dark .wd-tech-item { background: linear-gradient(155deg, #0f172a, #1e293b, #334155); }
body.theme-dark .wd-table tbody tr { background: rgba(15,23,42,0.95); }
body.theme-dark .wd-table tbody tr:hover { background: rgba(30,58,95,0.95); }


