/* AVM-Service theme. Base frame of the mockup: 1440px, side paddings 50px. */

:root {
    --navy: #100e38;
    --accent: #5a54d2;
    --accent-soft: #e6e6f8;
    --muted: #87869b;
    --line: #dcdce4;
    --bg-soft: #f4f6f7;
    --white: #fff;
    --radius: 16px;
    --pad: 50px;
    --header-h: 90px;
    --font: 'Onest', 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.25;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.avm-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.avm-h2 {
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
}
.avm-h2--light { color: var(--white); }

.avm-section { padding-top: 53px; padding-bottom: 27px; }

/* ---------- buttons ---------- */

.avm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.avm-btn:active { transform: translateY(1px); }
.avm-btn:focus-visible, .avm-services__tab:focus-visible, .avm-input:focus-visible, .avm-scroll__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.avm-btn--sm { height: 44px; padding: 0 21px; border-radius: 22px; font-size: 16px; }
.avm-btn--lg { height: 73px; padding: 0 25px; border-radius: 18px; font-size: 24px; }
.avm-btn--block { width: 100%; height: 62px; border-radius: 31px; }

.avm-btn--dark { background: var(--navy); color: var(--white); }
.avm-btn--dark:hover { background: #231f63; }
.avm-btn--accent { background: var(--accent); color: var(--white); }
.avm-btn--accent:hover { background: #4942bd; }
.avm-btn--white { background: var(--white); color: var(--navy); }
.avm-btn--white:hover { background: var(--accent-soft); }
.avm-btn--outline { background: var(--white); border-color: var(--line); color: var(--navy); }
.avm-btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.avm-btn--outline:hover .avm-arrow { transform: translateX(3px); }
.avm-arrow { transition: transform .2s; }

.avm-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }

/* ---------- header ---------- */

.avm-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: background-color .2s, box-shadow .2s;
}
.avm-header.is-scrolled, .is-inner .avm-header { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }

.avm-header__bar {
    position: relative;
    max-width: 1440px;
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.avm-logo { display: inline-flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.avm-logo__name { font-size: 23px; line-height: 1; font-weight: 700; letter-spacing: .01em; }
.avm-logo__slogan { font-size: 7.4px; line-height: 1; color: var(--accent); letter-spacing: .01em; white-space: nowrap; }

.avm-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 25px; }
.avm-nav a { font-size: 16px; color: #4d4c66; transition: color .2s; }
.avm-nav a:hover { color: var(--accent); }

.avm-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--navy); cursor: pointer; }
.avm-burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.avm-header.is-open .avm-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.avm-header.is-open .avm-burger span:nth-child(2) { opacity: 0; }
.avm-header.is-open .avm-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */

.avm-hero {
    position: relative;
    min-height: 930px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    background: var(--navy) center / cover no-repeat;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}
.avm-hero__shade {
    position: absolute;
    inset: var(--header-h) 0 0 0;
    background: linear-gradient(180deg, rgba(16, 14, 56, 0) 0%, rgba(16, 14, 56, .28) 38%, rgba(16, 14, 56, .78) 72%, rgba(16, 14, 56, .94) 100%);
}
.avm-hero__inner { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: 83px; }

.avm-hero__title {
    font-size: 38px;
    line-height: 46px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.avm-hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }

.avm-about { margin-top: 40px; }
.avm-about__row { display: flex; align-items: flex-start; gap: 94px; }
.avm-about__text { flex: 0 0 433px; max-width: 433px; font-size: 16px; line-height: 20px; }

.avm-facts { flex: 1 1 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.avm-facts__item { display: flex; flex-direction: column; gap: 3px; }
.avm-facts__item b { font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.avm-facts__item span { font-size: 14px; line-height: 17px; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.avm-facts__item--num { gap: 0; }
.avm-facts__item--num b { font-size: 36px; line-height: 44px; }

/* ---------- services ---------- */

.avm-services { display: grid; grid-template-columns: 374px minmax(0, 1fr); gap: 20px; }

.avm-services__list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.avm-services__tab {
    flex: 1 1 59px;
    min-height: 59px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 19px 0 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.avm-services__tab:last-child { border-bottom: 0; }
.avm-services__tab:hover { background: #f3f3fc; }
.avm-services__tab.is-active { background: var(--accent-soft); color: var(--accent); }

.avm-check {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    transition: background-color .2s, border-color .2s;
}
.is-active .avm-check { background: var(--accent); border-color: var(--accent); }

.avm-services__view { position: relative; min-height: 475px; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.avm-services__panel {
    position: absolute;
    inset: 0;
    padding: 20px;
    background: center bottom / cover no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.avm-services__panel.is-active { opacity: 1; visibility: visible; }
.avm-services__text {
    min-height: 95px;
    display: flex;
    align-items: center;
    padding: 20px 20px;
    border-radius: var(--radius);
    background: var(--white);
    font-size: 16px;
    line-height: 20px;
}
.avm-services__text::after { content: ''; flex: 0 1 300px; }

/* ---------- projects ---------- */

.avm-container--bleed { padding-right: 0; }

.avm-projects {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-right: var(--pad);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.avm-projects::-webkit-scrollbar { display: none; }

.avm-project { flex: 0 0 311px; scroll-snap-align: start; }
.avm-project__img { height: 173px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.avm-project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.avm-project:hover .avm-project__img img { transform: scale(1.04); }
.avm-project__img.is-empty { background: linear-gradient(135deg, #e6e6f8 0%, #f4f6f7 60%, #dcdce4 100%); }
.avm-project__title { margin-top: 20px; max-width: 270px; font-size: 16px; line-height: 20px; font-weight: 500; }
.avm-project__tag { margin-top: 10px; font-size: 14px; line-height: 17px; color: var(--accent); }

.avm-scroll { display: flex; align-items: center; gap: 2px; margin-top: 20px; }
.avm-scroll__btn {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: var(--muted);
    clip-path: polygon(0 50%, 78% 6%, 78% 94%);
    cursor: pointer;
    transition: background-color .2s;
}
.avm-scroll__btn--next { clip-path: polygon(100% 50%, 22% 6%, 22% 94%); }
.avm-scroll__btn:hover { background: var(--accent); }
.avm-scroll__track { position: relative; flex: 1 1 auto; height: 11px; cursor: pointer; }
.avm-scroll__thumb { position: absolute; top: 0; left: 0; height: 11px; width: 40%; border-radius: 6px; background: var(--muted); cursor: grab; }
.avm-scroll__thumb:active { cursor: grabbing; background: var(--accent); }

/* ---------- team ---------- */

.avm-team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.avm-member {
    min-height: 240px;
    padding: 20px 12px 20px;
    border-radius: 28px;
    background: var(--bg-soft);
    text-align: center;
}
.avm-member__photo { width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); }
.avm-member__name { margin-top: 20px; font-size: 20px; line-height: 24px; font-weight: 500; }
.avm-member__role { margin-top: 10px; font-size: 14px; line-height: 17px; }

/* ---------- news ---------- */

.avm-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.avm-news__img { height: 173px; margin-bottom: 20px; border-radius: 15px; overflow: hidden; background: var(--bg-soft); container-type: inline-size; }
.avm-news__img img { width: 100%; height: 100%; object-fit: cover; }
.avm-news__img--brand { display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid #dcdce6; }
.avm-news__title { max-width: 365px; font-size: 18px; line-height: 1.1; font-weight: 500; }
.avm-news__date { display: block; margin-top: 10px; font-size: 15px; line-height: 1.1; color: var(--accent); }
.avm-news__brand { display: flex; align-items: center; gap: 3cqw; color: #120c87; font-family: 'EB Garamond', Garamond, 'Times New Roman', serif; font-size: 11.6cqw; line-height: 1; white-space: nowrap; }
.avm-news__brand img { width: 12.1cqw; height: 12.1cqw; object-fit: contain; }

/* ---------- contact ---------- */

.avm-contact { margin-top: 73px; padding: 30px 0 40px; background: var(--bg-soft); }
.avm-contact .avm-h2 { margin-bottom: 10px; }
.avm-contact__lead { font-size: 14px; line-height: 17px; }
.avm-contact__grid { display: grid; grid-template-columns: minmax(0, 664fr) minmax(0, 657fr); gap: 19px; margin-top: 30px; }

.avm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-content: start; }
.avm-form__full { grid-column: 1 / -1; }
.avm-input {
    width: 100%;
    height: 58px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--white);
    font-size: 18px;
    transition: border-color .2s;
}
.avm-input::placeholder { color: #adacba; }
.avm-input:hover { border-color: var(--line); }
.avm-input.is-invalid { border-color: #d2545a; }
.avm-form__msg { height: 119px; padding-top: 15px; resize: vertical; }
.avm-form__note { font-size: 14px; line-height: 17px; color: var(--muted); }
.avm-form__note.is-error { color: #c0393f; }

.avm-map { position: relative; min-height: 342px; border: 1px solid var(--line); border-radius: var(--radius); background: #eee center / cover no-repeat; }
.avm-map::after {
    content: '';
    position: absolute;
    left: 52.5%; top: 27.8%;
    width: 32px; height: 32px;
    margin: -16px 0 0 -16px;
    border-radius: 50%;
    background: var(--white);
    border: 9px solid var(--accent);
    box-shadow: 0 4px 14px rgba(90, 84, 210, .45);
}

/* ---------- inner pages: shared ---------- */

.avm-page { padding-top: calc(var(--header-h) + 60px); padding-bottom: 40px; }
.avm-page__section { margin-top: 80px; }
.avm-page__section--near { margin-top: 65px; }
.avm-h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 30px; }
.avm-h3 { margin: 30px 0 20px; font-size: 20px; line-height: 1.1; font-weight: 700; }
.avm-lead { max-width: 718px; font-size: 20px; line-height: 1.1; }
.avm-page .avm-actions { margin-top: 30px; }
.avm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- services page ---------- */

.avm-dirs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 21px 20px; }
.avm-dir {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 149px;
    padding: 20px;
    border: 1.5px solid #dcdce6;
    border-radius: 15px;
    background: var(--white);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.avm-dir:hover { border-color: #b9b6ee; }
.avm-dir.is-active { border-color: var(--accent); color: var(--accent); }
.avm-dir:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avm-dir__ico { position: relative; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 8px; background: #dcdce6; color: var(--navy); transition: background-color .2s, color .2s; }
.avm-dir__ico::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 24px; height: 24px;
    margin: -12px 0 0 -12px;
    background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}
.avm-dir.is-active .avm-dir__ico { background: var(--accent); color: var(--white); }
.avm-dir__name { display: block; margin-top: 30px; }

.avm-panel { margin-top: 30px; padding: 50px 0 30px; border-radius: 15px; background: var(--bg-soft); }
.avm-panel .avm-h1 { margin-bottom: 30px; }
.avm-dir-panel__img { height: 213px; border-radius: 15px; overflow: hidden; background: #dcdce6; }
.avm-dir-panel__img img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.avm-dir-panel__text { max-width: 539px; font-size: 18px; line-height: 1.1; }

.avm-tags { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.avm-tag { display: inline-flex; align-items: center; height: 29px; padding: 0 14px; border-radius: 14.5px; background: #d2d6ea; color: var(--accent); font-size: 15px; line-height: 1.1; font-weight: 500; white-space: nowrap; }

.avm-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.avm-case__img { height: 174px; border-radius: 15px; overflow: hidden; background: #dcdce6; }
.avm-case__img img { width: 100%; height: 100%; object-fit: cover; }
.avm-case__title { margin-top: 19px; font-size: 18px; line-height: 1.1; font-weight: 700; }
.avm-case__link { display: inline-block; margin-top: 10px; font-size: 18px; line-height: 1.1; font-weight: 500; color: var(--accent); }
.avm-case__link:hover { text-decoration: underline; }

.avm-logos { display: flex; flex-wrap: wrap; gap: 20px; }
.avm-logo-tile { display: flex; align-items: center; justify-content: center; width: 132px; height: 57px; padding: 8px; border-radius: 10px; background: var(--white); }
.avm-logo-tile img { max-height: 100%; object-fit: contain; }
.avm-logo-tile.is-empty { background: #dcdce6; }

/* ---------- projects page ---------- */

.avm-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
.avm-card { scroll-margin-top: calc(var(--header-h) + 20px); }
.avm-card__img { height: 174px; border-radius: 15px; overflow: hidden; background: #dcdce6; }
.avm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.avm-card:hover .avm-card__img img { transform: scale(1.04); }
.avm-card:target .avm-card__img { box-shadow: 0 0 0 3px var(--accent); }
.avm-card__title { margin-top: 20px; max-width: 290px; font-size: 18px; line-height: 1.1; font-weight: 700; }
.avm-card__tag { margin-top: 10px; font-size: 15px; line-height: 1.1; color: var(--accent); }

.avm-pmap { border-radius: 15px; overflow: hidden; background: #e8ecef; aspect-ratio: 1340 / 579; }
.avm-pmap img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about page ---------- */

.avm-history__track {
    display: flex;
    overflow-x: auto;
    border-radius: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.avm-history__track::-webkit-scrollbar { display: none; }
.avm-history__slide { position: relative; flex: 0 0 100%; height: 415px; scroll-snap-align: start; background: var(--navy); }
.avm-history__slide img { width: 100%; height: 100%; object-fit: cover; }
.avm-history__slide::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 191px; background: linear-gradient(0deg, var(--navy) 45%, rgba(16, 14, 56, 0)); pointer-events: none; }

.avm-timeline { position: relative; margin-top: -10px; overflow-x: auto; scrollbar-width: none; }
.avm-timeline::-webkit-scrollbar { display: none; }
.avm-timeline__list { display: flex; width: max-content; list-style: none; background: linear-gradient(#dcdce6, #dcdce6) 0 9.25px / 100% 1.5px no-repeat; }
.avm-timeline__year { flex: 0 0 240px; padding-top: 30px; position: relative; font-size: 20px; line-height: 1.1; font-weight: 700; }
.avm-timeline__year::before { content: ''; position: absolute; left: 1px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.avm-timeline__year:last-child { flex-basis: auto; padding-right: 0; }

.avm-table { border: 1px solid #dcdce6; border-radius: 15px; overflow: hidden; }
.avm-docs__row { display: flex; align-items: center; min-height: 59px; padding: 12px 20px; border-top: 1px solid #dcdce6; font-size: 18px; line-height: 1.1; }
.avm-docs__row:first-child { border-top: 0; }
.avm-docs__row a { display: flex; align-items: center; gap: 20px; transition: color .2s; }
.avm-docs__row a:hover { color: var(--accent); }
.avm-docs__ico { flex: 0 0 35px; width: 35px; height: 35px; border-radius: 8px; background: #dcdce6; }
.avm-docs__row.is-empty { gap: 20px; }
.avm-docs__bar { max-width: 60%; height: 16px; border-radius: 8px; background: #dcdce6; }

.avm-req { margin: 0; }
.avm-req__row { display: grid; grid-template-columns: minmax(0, 459px) minmax(0, 1fr); min-height: 60px; align-items: center; padding: 0 20px; border-top: 1px solid #dcdce6; font-size: 18px; line-height: 1.1; }
.avm-req__row:first-child { border-top: 0; }
.avm-req dt, .avm-req dd { margin: 0; padding: 10px 0; overflow-wrap: anywhere; }

/* ---------- contacts page ---------- */

.avm-contacts { margin-top: calc(var(--header-h) + 40px); padding: 43px 0 40px; border-radius: 15px; background: var(--bg-soft); }
.avm-contacts__title { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 30px; }
.avm-contacts__grid { display: grid; grid-template-columns: minmax(0, 663fr) minmax(0, 658fr); gap: 20px; align-items: stretch; }
.avm-contacts__side { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.avm-contacts__text { line-height: 1.5; }
.avm-contacts__text a { color: var(--accent); text-decoration: underline; }

.avm-info { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.avm-info__row {
    display: grid;
    grid-template-columns: minmax(0, 330fr) minmax(0, 303fr);
    align-items: center;
    min-height: 58px;
    padding: 0 15px;
    border-radius: 15px;
    background: var(--white);
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.32px;
}
.avm-info dt, .avm-info dd { margin: 0; padding: 14px 0; color: rgba(16, 14, 56, .5); overflow-wrap: anywhere; }
.avm-info dd a { transition: color .2s; }
.avm-info dd a:hover { color: var(--accent); }

.avm-contacts__map { position: relative; min-height: 634px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #e8ecef; }
.avm-contacts__map-img { position: absolute; left: -4.71%; top: -8.2%; width: 109.27%; height: 113.41%; max-width: none; object-fit: cover; }
.avm-contacts__pin { position: absolute; left: 53.5%; top: 30%; width: 46px; height: 46px; margin: -23px 0 0 -23px; }

/* ---------- footer ---------- */

.avm-footer { padding: 45px 0 79px; }
.avm-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.avm-footer__copy { font-size: 18px; line-height: 22px; color: var(--muted); }
.avm-social { display: flex; align-items: center; gap: 20px; color: #b9b8c6; }
.avm-social a { display: inline-flex; transition: color .2s; }
.avm-social a:hover, .avm-social .is-accent { color: var(--accent); }

/* ---------- inner pages ---------- */

.avm-inner { padding-top: calc(var(--header-h) + 50px); padding-bottom: 40px; min-height: 60vh; line-height: 1.5; }
.avm-inner h1 { font-size: 36px; line-height: 44px; font-weight: 600; margin-bottom: 24px; }
.avm-inner h2 { font-size: 26px; line-height: 32px; font-weight: 600; margin: 28px 0 14px; }
.avm-inner p { margin-bottom: 14px; }
.avm-inner a { color: var(--accent); text-decoration: underline; }
.avm-inner ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }

/* ---------- adaptive ---------- */

@media (max-width: 1200px) {
    :root { --pad: 32px; }
    .avm-about__row { gap: 40px; }
    .avm-about__text { flex-basis: 360px; }
    .avm-facts { flex-wrap: wrap; justify-content: flex-start; gap: 20px 40px; }
    .avm-services { grid-template-columns: 320px minmax(0, 1fr); }
    .avm-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .avm-dirs, .avm-grid4, .avm-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    :root { --header-h: 72px; }
    .avm-burger { display: block; }
    .avm-header__cta { margin-left: auto; }
    .avm-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        transform: none;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--pad) 16px;
        background: var(--white);
        box-shadow: 0 12px 24px rgba(16, 14, 56, .12);
        display: none;
    }
    .avm-header.is-open .avm-nav { display: flex; }
    .avm-header.is-open { background: var(--white); }
    .avm-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    .avm-nav a:last-child { border-bottom: 0; }

    .avm-hero { min-height: 760px; }
    .avm-about__row { flex-direction: column; gap: 28px; }
    .avm-about__text { flex: none; max-width: 560px; }
    .avm-facts { width: 100%; }

    .avm-services { grid-template-columns: 1fr; }
    .avm-services__view { min-height: 400px; }
    .avm-services__text::after { display: none; }
    .avm-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avm-contact__grid { grid-template-columns: 1fr; }
    .avm-contacts__grid { grid-template-columns: 1fr; }
    .avm-dirs, .avm-grid4, .avm-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avm-history__slide { height: 340px; }
    .avm-req__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; }
    .avm-contacts__map { min-height: 0; aspect-ratio: 658 / 634; }
}

@media (max-width: 640px) {
    :root { --pad: 16px; }
    .avm-h2 { font-size: 28px; line-height: 34px; margin-bottom: 20px; }
    .avm-section { padding-top: 40px; padding-bottom: 16px; }
    .avm-logo__name { font-size: 19px; }
    .avm-logo__slogan { font-size: 6.1px; }
    .avm-header__cta { display: none; }

    .avm-hero { min-height: 0; border-radius: 0 0 20px 20px; }
    .avm-hero__inner { padding-top: calc(var(--header-h) + 150px); padding-bottom: 36px; }
    .avm-hero__title { font-size: 26px; line-height: 32px; }
    .avm-hero__title br { display: none; }
    .avm-hero__actions { gap: 12px; }
    .avm-btn--lg { height: 56px; font-size: 18px; border-radius: 14px; flex: 1 1 100%; }
    .avm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; align-items: start; }
    .avm-facts__item b, .avm-facts__item span { white-space: normal; }

    .avm-services__view { min-height: 340px; }
    .avm-services__panel { padding: 12px; }
    .avm-services__text { min-height: 0; padding: 16px; }
    .avm-project { flex-basis: 78vw; }
    .avm-actions { gap: 12px; }
    .avm-actions .avm-btn { flex: 1 1 100%; }
    .avm-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .avm-member { min-height: 0; border-radius: 22px; }
    .avm-news { grid-template-columns: 1fr; gap: 28px; }
    .avm-contact { margin-top: 48px; }
    .avm-form { grid-template-columns: 1fr; }
    .avm-map { min-height: 260px; }
    .avm-page { padding-top: calc(var(--header-h) + 28px); }
    .avm-page__section, .avm-page__section--near { margin-top: 56px; }
    .avm-h1 { font-size: 30px; margin-bottom: 20px; }
    .avm-h3 { margin: 24px 0 14px; font-size: 18px; }
    .avm-lead, .avm-dir-panel__text { font-size: 16px; line-height: 1.3; }
    .avm-dirs { gap: 12px; }
    .avm-dir { min-height: 120px; padding: 14px; font-size: 16px; }
    .avm-dir__name { margin-top: 20px; }
    .avm-dir__name br { display: none; }
    .avm-panel { margin-top: 24px; padding: 28px 0 24px; border-radius: 15px; }
    .avm-dir-panel__img { height: 160px; }
    .avm-tags { gap: 8px; }
    .avm-cases, .avm-grid4 { grid-template-columns: 1fr; gap: 24px; }
    .avm-logo-tile { width: calc(50% - 10px); }
    .avm-pmap { aspect-ratio: 4 / 3; }
    .avm-pmap img { object-position: 30% 50%; }
    .avm-history__slide { height: 240px; }
    .avm-timeline__year { flex-basis: 96px; font-size: 16px; }
    .avm-timeline__year::before { width: 16px; height: 16px; top: 2px; }
    .avm-timeline__list { background-position: 0 9.25px; }
    .avm-docs__row, .avm-req__row { font-size: 15px; }
    .avm-req__row { grid-template-columns: 1fr; gap: 0; padding: 8px 15px; }
    .avm-req dt { padding: 0; color: var(--muted); font-size: 14px; }
    .avm-req dd { padding: 4px 0 0; }
    .avm-contacts { margin-top: calc(var(--header-h) + 16px); padding: 28px 0 24px; }
    .avm-contacts__title { font-size: 30px; margin-bottom: 20px; }
    .avm-contacts__side { gap: 20px; }
    .avm-info__row { grid-template-columns: 1fr; padding: 10px 15px; font-size: 16px; }
    .avm-info dt { padding: 0; font-size: 14px; }
    .avm-info dd { padding: 2px 0 0; color: var(--navy); }
    .avm-footer { padding: 28px 0 36px; }
    .avm-footer__copy { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
