@font-face {
    font-family: "Lexend";
    src: url("fonts/lexend-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --blue: #303b8f;
    --blue-dark: #222b72;
    --ink: #22212a;
    --muted: #656979;
    --line: #e3e5eb;
    --soft: #f6f7fa;
    --white: #fff;
    --shadow: 0 14px 36px rgba(35, 43, 91, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding-top: 112px;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    background: #f8f8f9 image-set(url("images/tlo-mapa.avif") type("image/avif"), url("images/tlo-mapa.jpg") type("image/jpeg")) center / cover fixed;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #fff; background: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    min-height: 112px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; justify-content: center; }
.brand__espis { width: 160px; height: auto; }

.client-brand {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    align-items: center;
    padding: 40px 20px 32px;
    background: #fff;
}
.client-brand__relation {
    position: absolute;
    top: 10px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #858b9d;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .2em;
    text-transform: uppercase;
    transform: translateX(-50%);
}
.client-brand__relation::before,
.client-brand__relation::after { content: ""; width: 24px; height: 1px; background: #d8dbe5; }
.client-brand__logo { width: 130px; height: auto; }

.visual-navigation {
    position: relative;
    z-index: 0;
    margin-top: -20px;
    overflow: hidden;
    background-color: #313b8e;
    isolation: isolate;
}
.visual-navigation::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #641c1b;
    background-image: image-set(url("images/tlo-mapa.avif") type("image/avif"), url("images/tlo-mapa.jpg") type("image/jpeg"));
    background-position: center;
    background-size: cover;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.visual-navigation__grid {
    width: min(100%, 1400px);
    margin: auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.visual-card {
    aspect-ratio: 1376 / 768;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    margin: 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}
.visual-card picture,
.visual-card picture::after {
    position: absolute;
    inset: 0;
}
.visual-card picture::after {
    content: "";
    background-color: rgba(0, 0, 0, .3);
    transition: background-color .5s cubic-bezier(0, 0, .44, 1.18);
}
.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0, 0, .44, 1.18);
}
.visual-card::after {
    content: "";
    position: absolute;
    inset: 20px;
    z-index: 2;
    border: 5px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    opacity: 0;
    transform: scale(.5);
    transition: transform .35s cubic-bezier(.05, .2, .1, 1), opacity .35s cubic-bezier(.05, .2, .1, 1);
    backface-visibility: hidden;
    pointer-events: none;
}
.visual-card span { position: relative; z-index: 3; }
.visual-card:hover img,
.visual-card:focus-visible img { transform: scale(1.09); }
.visual-card:hover::after,
.visual-card:focus-visible::after { opacity: 1; transform: scale(1); }
.visual-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.section-shell { width: min(calc(100% - 32px), 1220px); margin: 0 auto; }
.intro { padding: 42px 0 70px; }
.eyebrow,
.intro h1 { color: #242424; font-family: "Lexend", Arial, Helvetica, sans-serif; font-size: clamp(21px, 3vw, 25px); font-weight: 400; line-height: 35px; text-align: center; }
.eyebrow { margin: 0; }
.intro h1 { max-width: 860px; margin: 0 auto 34px; }
.section-title { width: min(100%, 370px); margin: 0 auto 38px; padding: 12px 24px; border-radius: 15px; color: #fff; background: var(--blue); text-align: center; font-size: 24px; line-height: 1.25; }
.content-card, .reviews-card, .contact-card { border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.content-card { padding: clamp(24px, 5vw, 48px); }
.about-card { overflow: hidden; padding: clamp(16px, 2.5vw, 30px); }
.about-card__lead { position: relative; margin-bottom: 16px; padding: clamp(28px, 3.7vw, 48px); overflow: hidden; border: 1px solid #e5eaf4; border-radius: 20px; background: #f7f9fd; }
.about-card__lead::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--blue); }
.about-card__statement, .about-card__story { max-width: 92ch; margin: 0 auto; }
.about-card__statement { margin-bottom: 17px; }
.about-card__statement p { margin: 0; color: #283044; font-size: clamp(17px, 1.7vw, 19px); font-weight: 600; line-height: 1.7; }
.about-card__story p { margin: 0; color: #4c5567; font-size: 16px; line-height: 1.8; }
.about-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-card__section { padding: clamp(24px, 2.5vw, 32px); border: 1px solid #e4e8f1; border-radius: 18px; background: linear-gradient(160deg, #fff, #fafbfe); }
.about-card__section h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 15px; color: var(--blue); font-size: 20px; line-height: 1.35; }
.about-card__section h3::before { content: ""; flex: none; width: 18px; height: 3px; border-radius: 3px; background: #a32b32; }
.about-card__section p { margin: 0 0 14px; color: #444a59; font-size: 15.5px; line-height: 1.8; }
.about-card__section p:last-child { margin-bottom: 0; }
.about-card__closing { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 25px 30px; border: 1px solid #dfe5f6; border-radius: 18px; background: #f5f7ff; }
.about-card__closing p { max-width: 55ch; margin: 0; color: #303442; font-size: 16px; line-height: 1.6; }
.about-card__closing a { flex: none; max-width: 100%; padding: 12px 18px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 700; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.about-card__closing a:hover,
.about-card__closing a:focus-visible { background: var(--blue-dark); }
@supports (text-wrap: pretty) {
    .about-card p,
    .site-footer__grid p { text-wrap: pretty; }
}
.prose { font-size: 16px; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--blue); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.offer-section { padding: 70px 0 52px; scroll-margin-top: 112px; color: #2b2d35; background: #fff; }
.offer-section .section-title { width: min(100%, 414px); margin-bottom: 50px; }
.section-title--light { color: #fff; background: var(--blue); }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer-list { margin: 0; padding: 12px 20px; list-style: none; border: 1px solid #e9eaf0; border-radius: 20px; background: #fff; box-shadow: 0 2px 14px rgba(34, 42, 70, .1); }
.offer-list li { display: flex; align-items: center; min-height: 60px; color: #292c35; font-family: "Lexend", Arial, Helvetica, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.4; }
.offer-list li::before { content: ""; flex: none; width: 40px; height: 40px; margin-right: 16px; border-radius: 10px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m4 12 5 5L20 6' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat; }

.reviews { padding: 72px 0 80px; }
.reviews-card { padding: clamp(22px, 4vw, 42px); }
.reviews-card__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.reviews-card__header strong, .reviews-card__header span { display: block; }
.reviews-card__header strong { font-size: 21px; }
.reviews-card__header span { color: var(--muted); font-size: 14px; }
.reviews-card select { min-width: 150px; padding: 10px 36px 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.empty-state { margin: 32px 0; padding: 22px; border-radius: 14px; color: var(--muted); background: var(--soft); text-align: center; }
.opinion-form { max-width: 760px; margin: auto; }
.opinion-form h3 { font-size: 22px; }
.opinion-form > label { display: grid; gap: 7px; margin: 16px 0; font-weight: 650; }
.opinion-form input[type="text"], .opinion-form textarea { width: 100%; padding: 13px 15px; border: 1px solid #cfd3dc; border-radius: 12px; background: #fff; }
.opinion-form input:focus, .opinion-form textarea:focus, .opinion-form select:focus { outline: 3px solid rgba(48, 59, 143, .16); border-color: var(--blue); }
.opinion-form fieldset { margin: 18px 0; padding: 0; border: 0; }
.opinion-form legend { font-weight: 650; }
.rating { width: max-content; display: flex; flex-direction: row-reverse; margin-top: 4px; }
.rating input { position: absolute; opacity: 0; }
.rating label { padding: 1px; color: #cfd3dc; font-size: 32px; cursor: pointer; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { color: #f5ad21; }
.primary-button { padding: 13px 22px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 750; cursor: pointer; }
.primary-button:hover { background: var(--blue-dark); }
.form-status { min-height: 26px; color: var(--blue); font-weight: 650; }

.contact-section { padding: 72px 0 80px; scroll-margin-top: 112px; background: rgba(245, 246, 249, .92); }
.contact-section .section-title { width: min(100%, 414px); margin-bottom: 50px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.contact-panel__details { display: flex; align-items: center; padding: 28px 38px; }
.contact-grid { display: grid; grid-template-columns: 1fr; width: 100%; }
.contact-panel .contact-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-panel .contact-card:last-child .contact-item:last-child { border-bottom: 0; }
.contact-item > span { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); }
.contact-item > span svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item h3, .contact-item p { margin: 0; }
.contact-item h3 { font-size: 17px; }
.contact-item p { color: var(--muted); }
a.contact-item:hover h3 { color: var(--blue); }
.map-frame { position: relative; min-height: 480px; overflow: hidden; border-left: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

.site-footer-wrap { width: min(calc(100% - 64px), 1216px); margin: 72px auto 32px; }
.site-footer { overflow: hidden; border: 1px solid rgba(226, 232, 240, .8); border-radius: 40px; color: #334155; background: #fff; box-shadow: 0 20px 30px -5px rgba(226, 232, 240, .6); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; padding: 64px; }
.site-footer__about { grid-column: span 4; }
.site-footer__shortcuts { grid-column: span 2; }
.site-footer__office, .site-footer__contact { grid-column: span 3; }
.site-footer__logo { width: 144px; height: 64px; object-fit: contain; object-position: left center; }
.site-footer h2 { margin: 0 0 16px; color: #334155; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.site-footer p { margin: 0; color: #334155; font-size: 14px; line-height: 1.65; }
.site-footer__about > p { max-width: 360px; margin: 16px 0; }
.site-footer a { text-decoration: none; transition: color .2s, background-color .2s; }
.site-footer a:hover, .site-footer a:focus-visible { color: #0574bb; }
.site-footer__shortcuts ul { margin: 0; padding: 0; list-style: none; }
.site-footer__shortcuts li { margin: 0 0 10px; color: #334155; font-size: 14px; font-weight: 600; line-height: 1.45; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 16px; border-radius: 999px; color: #075591; background: #eff6ff; font-size: 12px; font-weight: 700; line-height: 1.3; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.footer-phone:hover, .footer-phone:focus-visible { color: #fff !important; background: #0574bb; }
.footer-phone svg, .site-footer__project svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__detail, .site-footer__email { display: flex; align-items: flex-start; gap: 12px; }
.site-footer__detail + .site-footer__detail { margin-top: 14px; align-items: center; }
.site-footer__icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 16px; color: #075591; background: #f1f5f9; }
.site-footer__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__detail p { padding-top: 1px; line-height: 1.45; }
.site-footer__detail strong, .site-footer__email strong { color: #1e293b; font-weight: 700; }
.site-footer__detail .site-footer__nip { padding: 0; font-size: 12px; white-space: nowrap; }
.site-footer__email { align-items: center; font-size: 14px; }
.site-footer__email:hover .site-footer__icon, .site-footer__email:focus-visible .site-footer__icon { color: #fff; background: #0574bb; }
.site-footer__project { margin-top: 12px; padding: 14px; border: 1px solid rgba(226, 232, 240, .8); border-radius: 16px; background: #f8fafc; }
.site-footer__project > span { display: block; color: #334155; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.site-footer__project a { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: #075591; font-size: 14px; font-weight: 800; }
.site-footer__project svg { width: 14px; height: 14px; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 48px; border-top: 1px solid rgba(226, 232, 240, .8); background: #f8fafc; }
.site-footer__bottom p, .site-footer__bottom a { color: #334155; font-size: 12px; font-weight: 500; }
.site-footer__bottom > div { display: flex; align-items: center; gap: 16px; white-space: nowrap; }

@media (max-width: 900px) {
    .contact-panel { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .contact-panel .contact-card:first-child .contact-item:last-child { border-bottom: 0; }
    .map-frame { min-height: 360px; border-top: 1px solid var(--line); border-left: 0; }
    .site-footer-wrap { width: min(calc(100% - 48px), 1216px); }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding: 48px; }
    .site-footer__about, .site-footer__shortcuts, .site-footer__office, .site-footer__contact { grid-column: auto; }
}

@media (max-width: 767px) {
    .visual-navigation__grid { grid-template-columns: 1fr; }
    .about-card__grid { grid-template-columns: 1fr; }
    .about-card__closing { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    body { background-attachment: scroll; }
    .brand__espis { width: 150px; }
    .client-brand { padding: 38px 14px 30px; }
    .client-brand__logo { width: 118px; }
    .intro { padding-top: 34px; }
    .section-title { width: min(100%, 320px); font-size: 21px; }
    .offer-grid, .contact-grid, .site-footer__grid { grid-template-columns: 1fr; }
    .contact-panel__details { padding: 18px 24px; }
    .contact-panel .contact-card:first-child .contact-item:last-child { border-bottom: 1px solid var(--line); }
    .map-frame { min-height: 320px; }
    .reviews-card__header { align-items: flex-start; flex-direction: column; }
    .reviews-card select { width: 100%; }
    .site-footer-wrap { width: min(calc(100% - 32px), 1216px); margin: 48px auto 20px; }
    .site-footer { border-radius: 28px; }
    .site-footer__grid { gap: 32px; padding: 32px; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; padding: 20px 32px; }
    .site-footer__bottom > div { flex-wrap: wrap; gap: 10px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
