@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --blue: #0a2f6b;
  --blue-2: #0f4f8a;
  --orange: #ff7a13;
  --orange-dark: #e76400;
  --ink: #1d2638;
  --muted: #657083;
  --line: #e7ebf1;
  --soft: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 34, 68, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  filter: contrast(0.92) saturate(0.9) brightness(1.02);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(10, 47, 107, 0.08);
  box-shadow: 0 8px 24px rgba(10, 47, 107, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo img {
  width: 136px;
  height: auto;
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.phone-link svg,
.service-icon svg,
.contact-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 122, 19, 0.28);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(255, 122, 19, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  width: 34px;
  left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(18deg);
  animation: buttonGlint 3.2s ease-in-out infinite;
}

@keyframes buttonGlint {
  0%, 42% { left: -70px; opacity: 0; }
  52% { opacity: 1; }
  72%, 100% { left: calc(100% + 70px); opacity: 0; }
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue-2);
}

.hero {
  min-height: 690px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 43%, rgba(255,255,255,0.25) 68%),
    url("../img/services/1.png") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero .container {
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(710px, 100%);
  padding: 86px 0 74px;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--blue);
  line-height: 1.14;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: 0;
  font-weight: 600;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

.hero-content p,
.page-hero p,
.lead {
  color: var(--muted);
  font-size: 20px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.metrics {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.metric {
  min-height: 180px;
  padding: 32px 22px;
  text-align: center;
  border-right: 1px solid #d5dbe6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.metric:last-child {
  border-right: 0;
}

.metric svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  flex: 0 0 46px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
}

.metric strong {
  display: block;
  color: var(--orange);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 7px;
}

.metric span {
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2::after,
.underlined::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--orange);
  margin: 18px auto 0;
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
}

.soft-band {
  background: var(--soft);
}

.problem-grid,
.advantage-grid,
.detail-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card,
.advantage-card,
.detail-card,
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 47, 88, 0.05);
}

.problem-card svg,
.advantage-card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.check-list li,
.detail-card li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0;
  color: #344052;
}

.check-list li::before,
.detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 5px var(--white);
  border: 1px solid var(--orange);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-content: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 40, 76, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 122, 19, 0.45);
}

.service-media {
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.service-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  color: var(--orange);
  margin-bottom: 18px;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 122, 19, 0.08);
}

.service-icon svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  stroke-width: 1.6;
}

.service-body p {
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}

.text-link {
  display: inline-flex;
  color: var(--blue);
  font-weight: 800;
  border-bottom: 2px solid var(--orange);
}

.two-col,
.about-grid,
.hero-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-image,
.hero-photo,
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.about-image img,
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blue-panel {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
}

.blue-panel h2,
.blue-panel h3,
.blue-panel p {
  color: var(--white);
}

.team-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 28px;
  overflow-x: auto;
  padding: 6px 6px 22px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 40, 76, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 0.82 / 1;
  object-fit: cover;
  object-position: top center;
  background: #eef1f5;
}

.team-card div {
  padding: 24px;
  text-align: center;
}

.team-card span {
  display: block;
  margin: 8px 0 12px;
  color: var(--orange);
  font-weight: 700;
}

.team-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.cta-band {
  background: linear-gradient(135deg, var(--blue), #073868);
  color: var(--white);
  border-radius: var(--radius);
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
  margin: 0;
}

.page-hero {
  padding: 86px 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 122, 19, 0.13), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
}

.service-detail-hero {
  padding: 72px 0;
}

.back-link {
  display: inline-flex;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 18px;
}

.detail-card h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.detail-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps b {
  color: var(--orange);
  font-size: 28px;
}

.contacts-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #344052;
}

.contact-item svg {
  color: var(--orange);
  flex: 0 0 auto;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font: inherit;
  background: var(--white);
}

.form textarea {
  min-height: 132px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  color: var(--blue);
  font-weight: 700;
}

.form-status.is-sending {
  color: var(--muted);
}

.form-status.is-success {
  color: #177245;
}

.form-status.is-error {
  color: #b42318;
}

.form-honey {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form .btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.map-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.office-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-grid > .office-map-grid {
  grid-template-columns: 1fr;
}

.office-map-card {
  min-height: 164px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 122, 19, 0.12), transparent 40%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(16, 40, 76, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.office-map-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 19, 0.45);
  box-shadow: var(--shadow);
}

.office-map-pin {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  border-radius: 50% 50% 50% 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.office-map-card b,
.office-map-card small {
  display: block;
}

.office-map-card b {
  color: var(--blue);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}

.office-map-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
}

.office-map-card strong {
  grid-column: 2;
  color: var(--orange-dark);
  font-size: 14px;
}

.site-footer {
  background: #071f48;
  color: rgba(255,255,255,0.78);
  padding: 62px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  width: 130px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 18px;
  filter: none;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(16, 40, 76, 0.06);
}

.review-summary div {
  padding: 26px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.review-summary div:last-child {
  border-right: 0;
}

.review-summary strong {
  display: block;
  color: var(--orange);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.review-summary span {
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(16, 40, 76, 0.06);
}

.review-card::before {
  content: "★★★★★";
  display: block;
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card b {
  display: block;
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 4px;
}

.review-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1080px) {
  .header-actions .btn {
    display: none;
  }

  .site-nav {
    gap: 22px;
  }

  .metric-grid,
  .services-grid,
  .problem-grid,
  .advantage-grid,
  .detail-grid,
  .values-grid,
  .reviews-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    height: 76px;
  }

  .logo img {
    width: 112px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 6px;
  }

  .header-actions {
    gap: 12px;
  }

  .phone-link {
    font-size: 0;
  }

  .phone-link svg {
    width: 24px;
    height: 24px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 68%, rgba(255,255,255,0.72) 100%),
      url("../img/services/1.png") center bottom / cover no-repeat;
  }

  .hero-content {
    padding: 64px 0 260px;
  }

  .hero-actions,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metric-grid,
  .services-grid,
  .problem-grid,
  .advantage-grid,
  .detail-grid,
  .values-grid,
  .review-summary,
  .reviews-grid,
  .office-map-grid,
  .team-grid,
  .two-col,
  .about-grid,
  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid #d5dbe6;
  }

  .review-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .review-summary div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 62px 0;
  }

  .team-scroll {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .cta-band,
  .blue-panel,
  .contacts-card {
    padding: 28px;
  }

  .map-frame img {
    height: 330px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-content p,
  .page-hero p,
  .lead {
    font-size: 18px;
  }

  .metric strong {
    font-size: 34px;
  }
}
