:root {
  --navy: #0d2b52;
  --blue: #1f4e8c;
  --sky: #7fa6c9;
  --ice: #e6eef6;
  --paper: #f4f6f8;
  --text: #26364a;
  --muted: #6b7280;
  --gold: #d4af37;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(13, 43, 82, .14);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: fixed; z-index: 100; top: 0; width: 100%; background: rgba(255,255,255,.93); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(13,43,82,.08); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 36px; }
.brand img { width: 172px; max-height: 66px; object-fit: contain; }
.nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--gold); transition: .25s; }
.nav a:hover::after { width: 100%; }
.header-phone { padding: 12px 18px; color: var(--navy); border: 1px solid rgba(13,43,82,.2); border-radius: 999px; font-size: 14px; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--navy); margin: 5px; }
.hero { position: relative; min-height: 820px; padding: 150px 0 80px; overflow: hidden; background: linear-gradient(125deg, #f9fbfd 0%, #e8f0f8 60%, #d9e6f2 100%); }
.hero::before { content:""; position:absolute; inset:0; opacity:.16; background-image: linear-gradient(rgba(13,43,82,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(13,43,82,.08) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to right, transparent, black); }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-shape-one { width: 520px; height: 520px; right: -180px; top: 90px; background: rgba(31,78,140,.13); }
.hero-shape-two { width: 240px; height: 240px; left: -90px; bottom: -80px; background: rgba(212,175,55,.15); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--blue); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: 12px; }
h1,h2,h3 { font-family: "Playfair Display", Georgia, serif; color: var(--navy); line-height: 1.12; }
h1 { margin: 0; font-size: clamp(52px, 7vw, 90px); letter-spacing: -.035em; }
.hero-slogan { margin: 14px 0 20px; font-size: clamp(22px, 2vw, 30px); color: var(--blue); font-family: "Playfair Display", Georgia, serif; }
.hero-text { max-width: 620px; font-size: 18px; color: #526175; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .25s, box-shadow .25s, background .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; background: var(--navy); box-shadow: 0 16px 30px rgba(13,43,82,.23); }
.button-primary:hover { background: var(--blue); box-shadow: 0 18px 38px rgba(31,78,140,.3); }
.button-light { background: rgba(255,255,255,.78); border: 1px solid rgba(13,43,82,.15); }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #29a36a; box-shadow: 0 0 0 6px rgba(41,163,106,.12); }
.hero-photo-card { position: relative; max-width: 500px; margin-left: auto; padding: 13px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); border-radius: 38px 38px 160px 38px; box-shadow: var(--shadow); }
.hero-photo-card::before { content:""; position:absolute; inset: -18px 30px 20px -18px; z-index:-1; border:1px solid rgba(31,78,140,.25); border-radius: 40px 40px 180px 40px; }
.hero-photo-card img { width: 100%; aspect-ratio: .78; object-fit: cover; object-position: center top; border-radius: 28px 28px 150px 28px; }
.photo-caption { position: absolute; left: -24px; bottom: 44px; padding: 17px 22px; background: var(--white); border-radius: 16px; box-shadow: 0 15px 45px rgba(13,43,82,.17); }
.photo-caption strong, .photo-caption span { display: block; }
.photo-caption strong { color: var(--navy); }
.photo-caption span { font-size: 12px; color: var(--muted); }
.trust-strip { background: var(--navy); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-grid > div { padding: 34px 40px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid span { color: var(--gold); font-weight: 700; margin-right: 14px; }
.trust-grid strong { font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.trust-grid p { margin: 7px 0 0 35px; color: rgba(255,255,255,.68); font-size: 13px; }
.section { padding: 110px 0; }
.section-heading h2 { margin: 0; max-width: 700px; font-size: clamp(38px, 5vw, 62px); }
.section-heading.centered { text-align: center; margin-bottom: 54px; }
.section-heading.centered h2 { margin-inline: auto; }
.section-heading.centered > p:last-child { color: var(--muted); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.about-copy { font-size: 17px; color: #5b6675; }
.about-copy p:first-child { margin-top: 0; }
.text-link { display: inline-flex; gap: 12px; margin-top: 15px; color: var(--blue); font-weight: 700; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.service-card { position: relative; min-height: 470px; overflow: hidden; border-radius: 24px; box-shadow: 0 12px 35px rgba(13,43,82,.11); background: var(--navy); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.service-card:hover img { transform: scale(1.045); }
.process { background: var(--navy); color: white; }
.process .eyebrow { color: var(--gold); }
.process h2, .process h3 { color:white; }
.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap: 20px; margin-top:55px; }
.process-item { padding: 26px 24px 30px; border-top:1px solid rgba(255,255,255,.2); }
.process-item span { color:var(--gold); font-weight:700; }
.process-item h3 { font-size:24px; margin:22px 0 10px; }
.process-item p { color:rgba(255,255,255,.65); font-size:14px; }
.reviews { background: #f8fafc; }
.reviews-grid { display:grid; grid-template-columns:1fr .9fr; gap:80px; align-items:center; }
.reviews-content h2, .contact-card h2 { margin:0 0 20px; font-size:clamp(38px,5vw,58px); }
.reviews-content > p { color:var(--muted); max-width:620px; }
.rating { display:flex; align-items:center; gap:18px; margin:28px 0; }
.rating strong { font-family:"Playfair Display"; color:var(--navy); font-size:56px; }
.rating span { color:var(--gold); letter-spacing:.12em; }
.quote-card { position:relative; padding:55px; background:white; border-radius:var(--radius); box-shadow:var(--shadow); }
.quote-mark { height:45px; font-family:Georgia,serif; font-size:90px; line-height:.8; color:var(--sky); }
.quote-card p { font-family:"Playfair Display",Georgia,serif; font-size:24px; color:var(--navy); }
.quote-card strong { color:var(--blue); font-size:13px; }
.contacts { background:white; }
.contacts-grid { display:grid; grid-template-columns:1fr 1fr; gap:35px; }
.contact-card { padding:52px; background:var(--paper); border-radius:var(--radius); }
.contact-card > p { color:var(--muted); }
.contact-list { margin:32px 0; border-top:1px solid rgba(13,43,82,.12); }
.contact-list > div { display:grid; grid-template-columns:110px 1fr; gap:18px; padding:17px 0; border-bottom:1px solid rgba(13,43,82,.12); }
.contact-list span { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.contact-list a { font-weight:600; }
.socials { display:flex; gap:12px; }
.socials a { padding:11px 17px; border:1px solid rgba(13,43,82,.18); border-radius:999px; font-size:13px; font-weight:700; }
.map-card { position:relative; min-height:560px; display:flex; align-items:flex-end; overflow:hidden; border-radius:var(--radius); background:linear-gradient(145deg,#dbe8f4,#b9cee2); }
.map-pattern { position:absolute; inset:0; opacity:.65; background-image: linear-gradient(35deg, transparent 45%, rgba(255,255,255,.8) 45%, rgba(255,255,255,.8) 50%, transparent 50%), linear-gradient(145deg, transparent 47%, rgba(13,43,82,.12) 47%, rgba(13,43,82,.12) 50%, transparent 50%); background-size:120px 120px, 150px 150px; }
.map-pin { position:absolute; left:50%; top:43%; transform:translate(-50%,-50%); display:grid; place-items:center; width:80px; height:80px; border-radius:50% 50% 50% 0; rotate:-45deg; background:var(--navy); color:white; font-size:36px; box-shadow:0 18px 40px rgba(13,43,82,.3); }
.map-pin::first-letter { rotate:45deg; }
.map-info { position:relative; z-index:2; width:100%; padding:30px; background:rgba(255,255,255,.9); backdrop-filter:blur(10px); }
.map-info strong,.map-info span { display:block; }
.map-info strong { font-family:"Playfair Display"; color:var(--navy); font-size:28px; }
.map-info span { margin-top:6px; color:var(--blue); font-size:13px; font-weight:700; }
.footer { background:#081d38; color:white; }
.footer-inner { min-height:180px; display:flex; align-items:center; gap:40px; }
.footer img { width:170px; filter:brightness(0) invert(1); }
.footer p { margin:auto; color:rgba(255,255,255,.62); }
.footer a { font-size:13px; color:var(--gold); font-weight:700; }
.floating-contact { position:fixed; right:24px; bottom:24px; z-index:50; display:grid; place-items:center; width:58px; height:58px; border-radius:50%; background:#229ed9; color:white; font-size:24px; box-shadow:0 15px 35px rgba(34,158,217,.35); }
.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }
@media (max-width: 960px) {
  .header-phone { display:none; }
  .menu-toggle { display:block; margin-left:auto; }
  .nav { position:absolute; top:84px; left:20px; right:20px; display:none; flex-direction:column; gap:0; padding:14px; background:white; border-radius:18px; box-shadow:var(--shadow); }
  .nav.open { display:flex; }
  .nav a { padding:12px; }
  .hero { min-height:auto; }
  .hero-grid, .about-grid, .reviews-grid, .contacts-grid { grid-template-columns:1fr; }
  .hero-grid { gap:50px; }
  .hero-content { text-align:center; }
  .hero-text { margin-inline:auto; }
  .hero-actions, .hero-note { justify-content:center; }
  .hero-photo-card { margin:auto; }
  .trust-grid, .services-grid { grid-template-columns:repeat(2,1fr); }
  .trust-grid > div:last-child { grid-column:1/-1; border-top:1px solid rgba(255,255,255,.12); }
  .process-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px) {
  .container { width:min(100% - 28px,1180px); }
  .header-inner { min-height:72px; }
  .brand img { width:145px; }
  .nav { top:72px; }
  .hero { padding:120px 0 60px; }
  h1 { font-size:48px; }
  .hero-slogan { font-size:22px; }
  .hero-text { font-size:16px; }
  .button { width:100%; }
  .hero-photo-card { border-radius:28px 28px 90px 28px; }
  .hero-photo-card img { border-radius:20px 20px 80px 20px; }
  .photo-caption { left:10px; bottom:20px; }
  .trust-grid, .services-grid, .process-grid { grid-template-columns:1fr; }
  .trust-grid > div { border-right:0; border-bottom:1px solid rgba(255,255,255,.12); padding:26px 20px; }
  .trust-grid > div:last-child { grid-column:auto; }
  .section { padding:76px 0; }
  .about-grid { gap:30px; }
  .service-card { min-height:430px; }
  .quote-card, .contact-card { padding:30px 24px; }
  .contact-list > div { grid-template-columns:1fr; gap:5px; }
  .map-card { min-height:420px; }
  .footer-inner { padding:36px 0; flex-direction:column; text-align:center; gap:18px; }
  .footer p { margin:0; }
}

/* Consultation modal */
body.modal-open { overflow: hidden; }
body { scroll-padding-top: 100px; }
button { font: inherit; }
.text-link { border: 0; padding: 0; background: transparent; cursor: pointer; }
.back-top { padding: 12px 22px; border: 1px solid rgba(212,175,55,.5); border-radius: 999px; transition: .3s; }
.back-top:hover { background: var(--gold); color: var(--navy); }
.consultation-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.consultation-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,20,40,.72); backdrop-filter: blur(7px); }
.modal-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: min(92vh, 900px); overflow-y: auto; padding: 44px; background: #fff; border-radius: 28px; box-shadow: 0 35px 90px rgba(3,19,39,.34); transform: translateY(22px) scale(.985); transition: transform .25s ease; }
.consultation-modal.open .modal-dialog { transform: none; }
.modal-dialog h2 { margin: 0 48px 10px 0; color: var(--navy); font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }
.modal-intro { margin: 0 0 28px; color: var(--muted); }
.modal-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 30px; line-height: 1; cursor: pointer; transition: transform .2s, background .2s; }
.modal-close:hover { transform: rotate(6deg); background: var(--ice); }
.consultation-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.form-field input, .form-field textarea { width: 100%; border: 1px solid rgba(13,43,82,.18); border-radius: 14px; background: #fbfcfe; color: var(--text); padding: 14px 15px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-field textarea { resize: vertical; min-height: 115px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31,78,140,.1); }
.form-field.invalid input, .form-field.invalid textarea { border-color: #c73e4d; box-shadow: 0 0 0 4px rgba(199,62,77,.08); }
.field-error, .consent-error { min-height: 16px; color: #b52d3d; font-size: 11px; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; cursor: pointer; }
.consent-field input { margin-top: 3px; accent-color: var(--navy); }
.website-field { position: absolute; left: -9999px; }
.submit-button { position: relative; border: 0; cursor: pointer; justify-self: start; min-width: 210px; }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.loading .submit-label { display: none; }
.submit-button.loading .submit-loader { display: block; }
.form-status { min-height: 24px; font-size: 13px; font-weight: 600; }
.form-status.success { color: #18794e; }
.form-status.error { color: #b52d3d; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .consultation-modal { padding: 10px; align-items: end; }
  .modal-dialog { max-height: 94vh; padding: 32px 20px 24px; border-radius: 24px 24px 0 0; }
  .form-grid { grid-template-columns: 1fr; }
  .submit-button { width: 100%; }
}

/* Кнопка заявки в блоке контактов */
.contact-request-button {
    width: fit-content !important;
    min-width: 0;
    min-height: 48px;
    padding: 0 24px;
    margin-bottom: 12px;

    border: 0;
    border-radius: 999px;

    background: var(--navy);
    color: #fff;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(13, 43, 82, .18);
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}
.contact-request-button:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(13, 43, 82, .24);
}

.contact-request-button:active {
    transform: translateY(0);
}
@media (max-width: 640px) {
    .contact-request-button {
        width: fit-content !important;
    }
}
