/* ========== RESET & GLOBAL ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inria Serif', serif;
  background: #F4F5F4;
  color: #20161B;
  overflow-x: hidden;
}

/* Глобальные стили для ссылок */
a {
  text-decoration: none;
  color: #1A1A1A;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #125cd2;
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inria Serif', serif !important;
  font-style: italic;
  font-weight: 700;
  color: #1A1A1A !important;
  letter-spacing: -0.02em;
  line-height: 116%;
  margin: 0;
  text-align: center;
}

p {
  font-family: 'Inria Serif', serif !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 132%;
}

.container {
  width: 100%;
  padding: 0;
  height: auto;
} 

/* ========== SYSTEM & GLOBAL STYLES (перенесено из Home.css) ========== */

.cta-text {
  margin: 24px 0 16px 0;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.accent-section {
  background: #C9EBFF !important;
  border-radius: 64px;
  transition: background 0.3s;
}

.box1 {
  width: 480px;
  height: 298px;
  left: 5%;
  top: 3.9961%;
  --rotation: 345deg;
  border-radius: 32px;
}

.make-offer-wrapper {
  max-width: 800px;
  margin: 0 auto 208px auto;
  text-align: center;
}

.work-section-title {
  font-family: 'Inria Serif', serif;
  font-style: italic;
  font-weight: 700;
  width: 100%;
  max-width: 800px;
  font-size: 40px;
  line-height: 116%;
  letter-spacing: -0.01em;
  color: #1f1f1f;
  text-align: center;
  margin: 24px auto 56px auto;
}

.centered-mini-menu {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  padding-top: 0;
}

/* ========== NAVBAR & LAYOUT ========== */
@media (max-width: 1060px) and (min-width: 769px) {
  .adaptive-navbar {
    display: flex;
    align-items: center;
    height: 64px;
    background: rgba(36, 40, 54, 0.82);
    border-radius: 24px;
    margin: 24px auto 32px auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    max-width: 90vw;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-left: 16px;
  }
  .navbar-logo {
    display: flex;
    align-items: center;
    margin-right: 24px;
  }
  .navbar-logo img {
    height: 40px;
    width: auto;
    display: block;
  }
  .navbar-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0 32px;
    width: 100%;
    align-items: center;
  }
  .navbar-link {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    transition: background 0.15s, color 0.15s;
    position: relative;
    z-index: 2;
  }
  .navbar-link.active {
    background: #fff;
    color: #125cd2;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .navbar-link:hover, .navbar-link:focus {
    background: rgba(255,255,255,0.12);
    color: #fff;
  }
  .navbar-offer {
    background: #125cd2;
    color: #fff;
    font-weight: 600;
    border-radius: 16px;
    padding: 0 28px;
    margin-left: 16px;
    transition: background 0.15s;
  }
  .navbar-offer:hover {
    background: #0d3e91;
  }
  .has-dropdown:hover .navbar-dropdown,
  .has-dropdown:focus-within .navbar-dropdown {
    display: block;
  }
  .navbar-dropdown {
    display: none;
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 24px 0 8px 0;
    z-index: 10;
    border-top: 6px solid #fff;
  }
  .dropdown-link {
    display: block;
    padding: 10px 24px;
    color: #222;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s;
  }
  .dropdown-link:hover {
    background: #f7f7f7;
  }
  .menu {
    display: none !important;
  }
}

@media (min-width: 1061px), (max-width: 768px) {
  .adaptive-navbar {
    display: none !important;
  }
}

@media (min-width: 320px) and (max-width: 1040px) {
  .menu {
    display: none !important;
  }
}
@media (max-width: 319px), (min-width: 1041px) {
  .menu {
    display: none !important;
  }
}

@media (max-width: 1040px) {
  .main-layout {
    flex-direction: column;
    gap: 24px;
    padding: 16px;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .menu {
    display: none !important;
  }
}

/* Общий боковой паддинг для всех мобильных устройств */
@media (max-width: 600px) {
  body {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  h2 {
    font-size: 24px !important;
    line-height: 29px !important;
  }
}

@media (max-width: 768px) {
  .main-layout {
    padding: 12px;
    gap: 16px;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 0;
  }
  .menu {
    display: none !important;
  }
  
  .gray-block-wrapper {
    width: 95vw;
    max-width: 95vw;
  }
  .gray-block-title {
    width: 95vw;
    font-size: 20px;
    line-height: 28px;
  }
  .gray-block-text {
    width: 95vw;
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 480px) {
  .gray-block-wrapper {
    width: 98vw;
    max-width: 98vw;
  }
  .gray-block-title {
    width: 98vw;
    font-size: 18px;
    line-height: 24px;
  }
  .gray-block-text {
    width: 98vw;
    font-size: 12px;
    line-height: 18px;
  }
} 