:root {
    --blue-soft: #a1ccd3;
    --blue: #63a7aa;
    --red: #c72c3d;
    --gray: #4d4d4d;
    --light: #F9F9F9;
    --white: #ffffff;
    --dark: #2f3334;
    --muted: #6d7476;
    --line: rgba(77, 77, 77, 0.12);
    --line-strong: rgba(77, 77, 77, 0.18);
    --shadow: 0 24px 70px rgba(77, 77, 77, 0.11);
    --shadow-soft: 0 16px 40px rgba(77, 77, 77, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
    --header-height: 82px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--gray);
    background: var(--white);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section--light {
    background: var(--light);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 44px;
    max-width: 1040px;
}

.section-head h2 {
    margin: 0;
    max-width: 1040px;
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--dark);
    text-wrap: balance;
}

.section-head p {
    margin: 0;
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--blue);
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 26px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red) 0 8px, transparent 8px 13px, var(--blue) 13px 26px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 190px;
}

.brand img {
    width: 176px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(249, 249, 249, 0.72);
}

.nav-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(77, 77, 77, 0.86);
    font-size: 14px;
    font-weight: 650;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--dark);
    background: var(--white);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--dark);
    color: var(--white);
    font-weight: 760;
    box-shadow: 0 14px 28px rgba(47, 51, 52, 0.16);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--blue);
    box-shadow: 0 18px 35px rgba(99, 167, 170, 0.32);
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    position: relative;
}

.burger span,
.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease;
}

.burger span { top: 22px; }
.burger::before { top: 16px; }
.burger::after { top: 28px; }

.burger.is-active span { opacity: 0; }
.burger.is-active::before { transform: translateY(6px) rotate(45deg); }
.burger.is-active::after { transform: translateY(-6px) rotate(-45deg); }

.hero {
    overflow: hidden;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 72px 0 90px;
    background:
            radial-gradient(circle at 13% 15%, rgba(161, 204, 211, 0.42), transparent 30%),
            radial-gradient(circle at 84% 18%, rgba(199, 44, 61, 0.08), transparent 26%),
            linear-gradient(180deg, #ffffff 0%, #ffffff 62%, var(--light) 100%);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 80px auto auto -220px;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 167, 170, 0.18), rgba(161, 204, 211, 0.08));
    filter: blur(2px);
}

.hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: 80px;
    width: 230px;
    height: 230px;
    background: linear-gradient(135deg, rgba(199, 44, 61, 0.14), rgba(99, 167, 170, 0.16));
    clip-path: polygon(50% 0, 100% 85%, 0 85%);
    opacity: 0.9;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.78fr);
    gap: 54px;
    align-items: center;
}

.hero h1 {
    margin: 0;
    max-width: 840px;
    font-size: clamp(42px, 6.4vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.062em;
    color: var(--dark);
}

.hero h1 span {
    color: var(--blue);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 10px;
    background: rgba(161, 204, 211, 0.46);
    z-index: -1;
    border-radius: 999px;
}

.hero-text {
    margin: 26px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(99, 167, 170, 0.35);
}

.btn--primary:hover {
    box-shadow: 0 22px 50px rgba(99, 167, 170, 0.44);
}

.btn--secondary {
    background: var(--white);
    color: var(--dark);
    border-color: var(--line-strong);
    box-shadow: 0 14px 30px rgba(77, 77, 77, 0.07);
}

.btn--secondary:hover {
    border-color: rgba(99, 167, 170, 0.44);
}

.hero-points {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(99, 167, 170, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: rgba(77, 77, 77, 0.82);
    font-weight: 700;
    font-size: 14px;
}

.hero-points span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

.hero-card {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(77, 77, 77, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(135deg, rgba(99, 167, 170, 0.12), transparent 44%),
            radial-gradient(circle at 90% 18%, rgba(199, 44, 61, 0.12), transparent 28%);
    pointer-events: none;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}


.hero-card h3 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.hero-card p {
    margin: 0;
    color: var(--muted);
}

.route {
    margin: 24px 0 0;
    padding: 18px;
    border-radius: 22px;
    background: var(--dark);
    color: var(--white);
}

.route-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 750;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.route-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.route-item {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.route-item b {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-soft);
    font-size: 22px;
    line-height: 1;
}

.route-item span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.35;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(77, 77, 77, 0.04);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(99, 167, 170, 0.35);
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--blue), var(--blue-soft), var(--red));
    opacity: 0;
    transition: opacity .22s ease;
}

.card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(99, 167, 170, 0.12);
    color: var(--blue);
    font-weight: 900;
}

.card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 21px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    grid-column: span 2;
    min-height: 285px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(77, 77, 77, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card--wide {
    grid-column: span 3;
}

.service-card::before {
    content: attr(data-num);
    position: absolute;
    right: 18px;
    top: 12px;
    color: rgba(99, 167, 170, 0.15);
    font-size: 74px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
}

.service-card h3 {
    position: relative;
    margin: 0 0 12px;
    max-width: 85%;
    color: var(--dark);
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.service-card p {
    position: relative;
    margin: 0 0 20px;
    color: var(--muted);
}

.tag-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tag-list li {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--light);
    color: rgba(77, 77, 77, 0.78);
    font-weight: 700;
    font-size: 13px;
}

.industries {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.industry {
    min-height: 150px;
    padding: 20px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(77, 77, 77, 0.04);
}

.industry b {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 18px;
    line-height: 1.2;
}

.industry span {
    color: var(--muted);
    font-size: 14px;
}

.process {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    counter-reset: step;
}

.process-step {
    position: relative;
    min-height: 260px;
    padding: 22px 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--line);
    overflow: hidden;
}

.process-step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-weight: 900;
}

.process-step::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -45px;
    bottom: -45px;
    border-radius: 50%;
    background: rgba(161, 204, 211, 0.34);
}

.process-step h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 18px;
    line-height: 1.18;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.panel {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--dark);
    color: var(--white);
    position: sticky;
    top: calc(var(--header-height) + 24px);
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -92px;
    top: -92px;
    border-radius: 50%;
    background: rgba(99, 167, 170, 0.25);
}

.panel::after {
    content: "";
    position: absolute;
    width: 115px;
    height: 115px;
    right: 36px;
    bottom: -40px;
    background: rgba(199, 44, 61, 0.24);
    clip-path: polygon(50% 0, 100% 90%, 0 90%);
}

.panel > * {
    position: relative;
    z-index: 1;
}

.panel h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.panel p {
    margin: 0 0 26px;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    color: rgba(255,255,255,0.88);
}

.check-list li::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.22);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.trust-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(77, 77, 77, 0.04);
}

.trust-card b {
    display: block;
    color: var(--dark);
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.trust-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.formats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.format-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(77, 77, 77, 0.05);
}

.format-card strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 12px;
    margin-bottom: 22px;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.format-card:nth-child(2) strong { background: var(--dark); }
.format-card:nth-child(3) strong { background: var(--red); }

.format-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.format-card p {
    margin: 0;
    color: var(--muted);
}

.task-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
}

.tasks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.task {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.task i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(99, 167, 170, 0.13);
    color: var(--blue);
    font-style: normal;
    font-weight: 900;
}

.task b {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.task span {
    color: var(--muted);
    font-size: 14px;
}

.accent-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, var(--blue), #4d9094);
    color: var(--white);
    box-shadow: 0 24px 60px rgba(99, 167, 170, 0.25);
    overflow: hidden;
    position: relative;
}

.accent-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -55px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
}

.accent-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.accent-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: rgba(255,255,255,0.86);
}

.accent-card .btn {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--white);
    color: var(--dark);
}

.tech-wrap {
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(77, 77, 77, 0.05);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tech-tags li {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--light);
    color: rgba(77, 77, 77, 0.82);
    font-weight: 730;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--white);
    min-height: 230px;
}

.team-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(99,167,170,0.18), rgba(161,204,211,0.36));
    color: var(--dark);
    font-weight: 900;
    font-size: 22px;
}

.team-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 20px;
    line-height: 1.15;
}

.team-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.faq {
    display: grid;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(77, 77, 77, 0.035);
}

.faq-button {
    width: 100%;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--dark);
    text-align: left;
    font-weight: 850;
    font-size: 18px;
}

.faq-button span:last-child {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--blue);
    transition: transform .2s ease;
}

.faq-item.is-open .faq-button span:last-child {
    transform: rotate(45deg);
    background: rgba(99, 167, 170, 0.12);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-content p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--muted);
}

.contact {
    padding: 96px 0;
    background:
            radial-gradient(circle at 18% 20%, rgba(161, 204, 211, 0.38), transparent 28%),
            linear-gradient(135deg, var(--dark), #3d4243);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.contact::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    right: -120px;
    top: -80px;
    background: rgba(99,167,170,0.28);
}

.contact::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    left: -40px;
    bottom: -80px;
    background: rgba(199,44,61,0.22);
    clip-path: polygon(50% 0, 100% 88%, 0 88%);
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
    gap: 48px;
    align-items: start;
}

.contact h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.contact-text {
    margin: 0 0 30px;
    color: rgba(255,255,255,0.78);
    font-size: 19px;
    max-width: 650px;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(255,255,255,0.86);
}

.contact-list li::before {
    content: "";
    width: 26px;
    height: 26px;
    margin-top: 2px;
    border-radius: 9px;
    background: var(--blue);
    box-shadow: inset 0 0 0 8px rgba(255,255,255,0.18);
}

.form {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 760;
    font-size: 13px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--light);
    padding: 13px 14px;
    color: var(--dark);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
    min-height: 116px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(99, 167, 170, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 167, 170, 0.12);
    background: var(--white);
}

.form .btn {
    width: 100%;
    border: 0;
    margin-top: 4px;
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    transform: translate(-50%, 120%);
    width: min(calc(100% - 32px), 520px);
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--dark);
    color: var(--white);
    box-shadow: var(--shadow);
    transition: transform .25s ease;
    text-align: center;
    font-weight: 700;
}

.toast.is-visible {
    transform: translate(-50%, 0);
}

.footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.footer-logo {
    width: 130px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.footer-links a:hover {
    color: var(--blue);
}



.expertise-section {
    background:
            radial-gradient(circle at 15% 12%, rgba(161, 204, 211, 0.35), transparent 30%),
            linear-gradient(180deg, #ffffff 0%, var(--light) 100%);
}

.expertise-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 34px;
    align-items: stretch;
}

.expertise-lead {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.expertise-lead::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -82px;
    top: -82px;
    border-radius: 50%;
    background: rgba(99, 167, 170, 0.25);
}

.expertise-lead::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: 38px;
    bottom: -42px;
    background: rgba(199, 44, 61, 0.22);
    clip-path: polygon(50% 0, 100% 90%, 0 90%);
}

.expertise-lead > * {
    position: relative;
    z-index: 1;
}

.expertise-lead h2 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.expertise-lead p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.expertise-card {
    min-height: 190px;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(77, 77, 77, 0.05);
}

.expertise-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.expertise-card b {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.expertise-card span {
    color: var(--muted);
    font-weight: 650;
}

.requisites {
    padding: 86px 0;
    background: var(--light);
}

.requisites-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 18px 46px rgba(77, 77, 77, 0.07);
    overflow: hidden;
}

.requisites-top {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
    gap: 24px;
    padding: 30px;
    color: var(--white);
    background:
            radial-gradient(circle at 92% 18%, rgba(199,44,61,0.24), transparent 28%),
            linear-gradient(135deg, var(--dark), #3e4445);
}

.requisites-top h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.requisites-top p,
.requisites-contact a {
    color: rgba(255,255,255,0.78);
}

.requisites-top p {
    margin: 0;
}

.requisites-contact {
    display: grid;
    align-content: end;
    gap: 8px;
    font-weight: 750;
}

.requisites-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.req-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
}

.req-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.req-item dt {
    color: var(--muted);
    font-weight: 760;
}

.req-item dd {
    margin: 0;
    color: var(--dark);
    font-weight: 700;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.footer-navs {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 22px;
}

.footer-title {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 850;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-legal {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.footer-legal a {
    color: var(--muted);
    font-size: 13px;
}

.footer-links a:hover,
.footer-legal a:hover,
.requisites-contact a:hover {
    color: var(--blue);
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 0;
    }
    .nav-links a {
        padding: 9px 10px;
    }
    .hero-grid,
    .contact-grid,
    .expertise-layout {
        grid-template-columns: 1fr;
    }
    .hero-card {
        max-width: 680px;
    }
    .process {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .industries {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .task-layout {
        grid-template-columns: 1fr;
    }
    .requisites-body {
        grid-template-columns: 1fr;
    }
    .req-item:nth-child(odd) {
        border-right: 0;
    }
}

@media (max-width: 900px) {
    :root { --header-height: 72px; }
    .brand img { width: 142px; }
    .burger { display: block; }
    .nav-links {
        position: fixed;
        left: 20px;
        right: 20px;
        top: calc(var(--header-height) + 12px);
        display: grid;
        gap: 4px;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255,255,255,0.98);
        box-shadow: var(--shadow);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .nav-links.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-links a {
        padding: 13px 14px;
        border-radius: 14px;
    }
    .nav-cta { display: none; }
    .hero { padding: 48px 0 72px; }
    .section { padding: 72px 0; }
    .section-head { grid-template-columns: 1fr; align-items: start; }
    .card-grid,
    .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card,
    .service-card--wide { grid-column: span 1; }
    .split { grid-template-columns: 1fr; }
    .panel { position: relative; top: auto; }
    .formats { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .hero-grid { gap: 30px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .card-grid,
    .services-grid,
    .industries,
    .process,
    .trust-grid,
    .tasks,
    .team-grid,
    .expertise-grid,
    .footer-main,
    .footer-navs,
    .requisites-top {
        grid-template-columns: 1fr;
    }
    .process-step { min-height: auto; }
    .route-grid,
    .form-row,
    .req-item {
        grid-template-columns: 1fr;
    }
    .hero-card,
    .panel,
    .form,
    .tech-wrap,
    .accent-card,
    .expertise-lead {
        border-radius: 24px;
        padding: 22px;
    }
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
    .footer-links { justify-content: flex-start; }
    .footer-legal { justify-items: start; text-align: left; }
    .requisites { padding: 72px 0; }
    .requisites-card { border-radius: 24px; }
}

/* Оверлей */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Модальное окно */
.modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

/* Кнопка закрытия */
.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.modal__close:hover {
    color: #333;
}

/* Иконка */
.modal__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.modal__icon--success {
    background-color: #e8f5e9;
    color: #4caf50;
}

.modal__icon--error {
    background-color: #ffebee;
    color: #f44336;
}

/* Заголовок */
.modal__title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Текст */
.modal__text {
    margin: 0 0 25px;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

/* Кнопка */
.modal__btn {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

.modal__btn:hover {
    background-color: #1976d2;
}

.modal__btn--success {
    background-color: #4caf50;
}

.modal__btn--success:hover {
    background-color: #45a049;
}

.modal__btn--error {
    background-color: #f44336;
}

.modal__btn--error:hover {
    background-color: #da190b;
}

/* Блокировка скролла */
body.modal-open {
    overflow: hidden;
}

/* Адаптивность */
@media (max-width: 480px) {
    .modal {
        padding: 30px 20px;
        width: 95%;
    }

    .modal__title {
        font-size: 20px;
    }

    .modal__icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

.legal-modal[hidden] {
    display: none;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(47, 51, 52, 0.58);
    backdrop-filter: blur(14px);
}

.legal-modal__dialog {
    width: min(100%, 940px);
    max-height: min(88vh, 860px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 32px 90px rgba(31, 35, 36, 0.32);
}

.legal-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px 22px;
    border-bottom: 1px solid var(--line);
    background:
            radial-gradient(circle at 96% 8%, rgba(199,44,61,0.14), transparent 34%),
            radial-gradient(circle at 4% 0%, rgba(161,204,211,0.32), transparent 32%),
            var(--light);
}

.legal-modal__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-modal__label::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 17px 0 0 var(--blue);
}

.legal-modal__title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.legal-modal__close {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--white);
    color: var(--dark);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.legal-modal__close:hover {
    transform: translateY(-1px);
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.legal-modal__content {
    overflow-y: auto;
    padding: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-soft) transparent;
}

.legal-text {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.64;
}

.legal-text h2 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: 28px;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.legal-text h3 {
    margin: 26px 0 10px;
    color: var(--dark);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.legal-text p {
    margin: 0 0 12px;
}

.legal-text ul {
    margin: 0 0 16px;
    padding-left: 0;
    list-style: none;
}

.legal-text li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 24px;
}

.legal-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(161,204,211,0.34);
}

.legal-text a {
    color: var(--blue);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-note a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 700px) {

    .legal-modal {
        padding: 12px;
    }
    .legal-modal__dialog {
        max-height: 92vh;
        border-radius: 22px;
    }
    .legal-modal__header {
        padding: 20px 18px 16px;
    }
    .legal-modal__content {
        padding: 22px 18px;
    }
    .legal-modal__close {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    .legal-text {
        font-size: 14px;
    }
    .legal-text h2 {
        font-size: 23px;
    }

}