/*
  Lertisento — Recruitment Agency
  Design system per spec: white background, soft blue accents, Inter typography
*/
:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --overlay: rgba(15, 23, 42, 0.55);
  --primary: #D97706;
  --primary-hover: #B45309;
  --text: #374151;
  --text-strong: #111827;
  --text-muted: #6B7280;
  --radius: 10px;
  --radius-sm: 8px;
  --container: 1120px;
  /* Hero & accent */
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --accent: #D97706;
  --accent-hover: #B45309;
}
* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid #e5e7eb; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo img { height: 32px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 0; text-decoration: none; cursor: pointer; font-weight: 600; }
.btn-lg { height: 48px; padding: 0 20px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--primary); color: #FFFFFF; border-radius: 8px; }
.btn-accent:hover { background: var(--primary-hover); }
.btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Scroll-to-top button */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;

  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;

  display: grid;
  place-items: center;

  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.to-top:hover { background: rgba(17, 24, 39, 0.75); }
.to-top:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hero */
.hero { position: relative; min-height: 100vh; width: 100%; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('/assets/756321331663121.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) brightness(0.75);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
/* Center the headline and CTA exactly in the viewport */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 0 20px;
  gap: 18px;
}
.hero h1 { margin: 0 0 24px; font-size: clamp(42px, 6vw, 68px); line-height: 1.25; color: #FFFFFF; font-weight: 700; max-width: 880px; margin-left: auto; margin-right: auto; }
.hero p { margin: 0 0 28px; font-size: clamp(16px, 2.3vw, 18px); color: rgba(255,255,255,0.9); }

/* Hero top navigation inside hero */
/* Hero top layer (out of document flow) */
.hero-top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  pointer-events: none;
}
.hero-top-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: #FFFFFF;
  height: 64px;
}
.hero-menu {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
  pointer-events: auto;
}
.hero-menu a { color: #FFFFFF; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; opacity: 0.96; }
.hero-menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Logo is part of the top layer (not centered in hero content) */
.hero-brand {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 4;
  pointer-events: auto;
}
.logo-word { color: #FFFFFF; font-weight: 700; letter-spacing: 0.08em; }
.logo-svg { height: 300px; width: auto; }
.tagline { color: rgba(255,255,255,0.9); font-size: 12px; margin-top: 4px; }

.hero-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
  color: #FFFFFF;
  opacity: 0.9;
  pointer-events: auto;
}
.hero-social a { color: inherit; display: inline-flex; }
.hero-social a:hover { color: #fff; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  animation: scroll-bounce 1.4s ease-in-out infinite;
  text-decoration: none;
}
.scroll-indicator svg { width: 28px; height: 28px; }

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 6px; font-size: 28px; color: var(--text-strong); font-weight: 600; }
.section-head .muted { color: var(--text-muted); }

/* Services */
.section-services { background: var(--bg-soft); padding: 110px 0; }

/* How we work (larger section) */
.section-services .section-head h2 { font-size: 36px; }
.section-services .work-steps { margin-top: 64px; }
.section-services .work-icon { width: 88px; height: 88px; }
.section-services .work-icon img,
.section-services .work-icon svg { width: 52px; height: 52px; }
.section-services .work-step h3 { font-size: 24px; }
.section-services .work-step p { font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); }
.card h3 { margin: 4px 0 0; font-size: 18px; color: var(--text-strong); font-weight: 600; }
.card p { margin: 0; color: var(--text); }

/* About */
.section-about { position: relative; padding-top: 120px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; }
.about-media { min-height: 320px; border-radius: var(--radius); background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2069&auto=format&fit=crop'); background-size: cover; background-position: center; }
.about-content h2 { margin: 0 0 14px; font-size: 44px; color: var(--text-strong); font-weight: 800; line-height: 1.15; }
.about-content p { margin-top: 0; font-size: 18px; line-height: 1.8; max-width: 58ch; }
.bulleted { padding-left: 0; list-style: none; margin: 14px 0 0; }
.bulleted li { display: flex; gap: 10px; align-items: baseline; margin: 10px 0; color: var(--text); }
.bulleted li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 8px; flex: 0 0 8px; }

/* About: text left, gallery right */
.section-about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* The overlay is decorative; keep content above it */
.section-about .container,
.section-about .about-content {
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 720px;
}

.about-gallery {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.about-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
  .section-about .container {
    grid-template-columns: 1fr;
  }
  .about-gallery {
    margin-top: 16px;
  }
}

/* About overlay removed (was creating a tinted background feel) */
.about-overlay { display: none; }

/* How do we work — force 3 columns like in reference */
.section-services .container{

max-width: 1100px; /* чтобы колонки реально влезали */

}

.section-services .section-head{

text-align: center;

}

.section-services .work-steps{

margin-top: 56px;

display: grid !important;

grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;

gap: 48px !important;

justify-items: center;

align-items: start;

text-align: center;

width: 100%;

}

.section-services .work-step{

max-width: 320px;

}

.section-services .work-icon{

margin: 0 auto 14px;

width: 72px;

height: 72px;

display: grid;

place-items: center;

color: #111827;

}

.section-services .work-step h3{

margin: 10px 0 10px;

font-size: 22px;

font-weight: 700;

color: #111827;

}

.section-services .work-step p{

margin: 0;

font-size: 14px;

line-height: 1.7;

color: #6B7280;

}

/* адаптив */

@media (max-width: 900px){

.section-services .work-steps{

grid-template-columns: 1fr !important;

gap: 28px !important;

}

.section-services .work-step{

max-width: 520px;

}

}

/* Specialists */
.section-specialists { background: var(--bg); padding: 110px 0; }
.section-specialists .section-head h2 { font-size: 36px; font-weight: 800; line-height: 1.15; }

.specialists-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
}
.specialists-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-strong);
}
.specialists-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 9px;
  flex: 0 0 10px;
}

@media (max-width: 800px) {
  .specialists-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Contact */
.section-contact {
  background: var(--bg-soft);
  border-top: 1px solid #e5e7eb;
}
.section-contact .section-head h2 {
  font-size: 34px;
  font-weight: 800;
}
.contact-layout { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 24px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 24px; }

/* Social links block under contact-sidebar */
.contact-side .t-sociallinks__wrapper{
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}
.form-card {
  background: #fff;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}
.contact-sidebar { background: #fff; padding: 22px; box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08); }
.contact-sidebar .contact-block + .contact-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.contact-sidebar h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--text-strong); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-sidebar p { margin: 6px 0; }
.contact-sidebar .label { display: inline-block; min-width: 72px; color: var(--text-muted); }
.contact-sidebar a { color: var(--text); text-decoration: none; white-space: nowrap; }
.contact-sidebar a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

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

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.field { display: grid; gap: 8px; margin: 12px 0; }
.field span { font-weight: 600; color: var(--text-strong); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); font: inherit; color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; color: var(--text); }
.checkbox input { margin-top: 4px; accent-color: var(--primary); }
.actions { margin-top: 12px; }
.form-status { margin-top: 12px; color: var(--text-muted); }

/* Honeypot field: keep in DOM for bots, invisible for humans */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Social links (contact sidebar) */
.t-sociallinks__wrapper{
  list-style: none;
  padding: 0;
  margin: 0;

  /* Spread icons across the full width of the block */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 0;
  align-items: center;
  justify-items: center;
}

@media (max-width: 900px) {
  .t-sociallinks__wrapper{
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 12px;
    justify-items: center;
  }
}

.t-sociallinks__wrapper .t-sociallinks__item{
  margin: 0;
  padding: 0;
  width: 40px;
  height: 40px;
}

.t-sociallinks__wrapper .t-sociallinks__item a{
  display: grid;
  place-items: center;

  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;

  /* remove any inline baseline/whitespace effects */
  line-height: 0;
}

.t-sociallinks__wrapper .t-sociallinks__svg{
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
}

/* Footer */
.site-footer { background: #111827; border-top: 1px solid rgba(255,255,255,0.10); padding-bottom: 28px; }
.footer-wrap {
  display: grid;
  grid-template-rows: auto;
  gap: 0;
  padding: 0;
  color: rgba(255,255,255,0.92);
}
.footer-top { display: flex; justify-content: center; }
.footer-top img { height: 28px; width: auto; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px 48px;
  justify-content: center;
  justify-items: start;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}
.footer-cols .col h3 { margin: 0 0 10px; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-cols .col p { margin: 6px 0; color: rgba(255,255,255,0.9); }
.footer-cols .label { display: inline-block; min-width: 72px; color: rgba(255,255,255,0.65); }
.footer-cols a { color: rgba(255,255,255,0.92); text-decoration: none; white-space: nowrap; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom { width: 100%; max-width: none; margin: 16px 0 0; padding-top: 18px; text-align: center; display: flex; justify-content: center; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.75); font-size: 14px; }

@media (max-width: 800px) {
  .footer-cols { grid-template-columns: 1fr; gap: 12px; }
}

/* remove old footer styles no longer used */
.footer-grid, .footer-inner, .footer-col, .footer-col.small, .footer-contacts, .footer-contacts-col, .footer-contacts-block, .footer-brand, .footer-copy { all: unset; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .nav { display: none; }
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero-top-inner { height: 56px; padding: 12px 16px; }
  .hero-menu { display: none; }
  .hero-social { display: none; }
  .logo-svg { height: 200px; }
  .tagline { font-size: 12px; }
}
