/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #235787;
  --color-primary-dark: #1a4268;
  --color-primary-light: #2d6da3;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f1f3f5;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1140px;
  --header-height: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-gray-800);
  line-height: 1.6;
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-light);
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-gray-900);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

/* ===== Header ===== */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.header__logo:hover {
  color: var(--color-primary-dark);
}

.nav__list {
  display: flex;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-gray-700);
  font-size: 0.938rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}

.nav__link--active {
  font-weight: 600;
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 280px;
  padding: 0.5rem 0;
  z-index: 200;
}

.nav__item--dropdown:hover .nav__dropdown {
  display: block;
}

.nav__dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-gray-700);
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

.nav__dropdown li a:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

.breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section--gray {
  background: var(--color-gray-50);
}

.section__title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ===== Requisites Table ===== */
.requisites-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.requisites-table th,
.requisites-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}

.requisites-table tr:last-child th,
.requisites-table tr:last-child td {
  border-bottom: none;
}

.requisites-table th {
  width: 40%;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-600);
  background: var(--color-gray-50);
  white-space: nowrap;
}

.requisites-table td {
  color: var(--color-gray-900);
}

@media (max-width: 768px) {
  .requisites-table th {
    white-space: normal;
  }
}

/* ===== Cards Grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card__title {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--color-gray-600);
  font-size: 0.938rem;
  line-height: 1.7;
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card__link:hover {
  color: var(--color-primary-light);
}

/* ===== Auditor Cards ===== */
.auditor-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.auditor-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.auditor-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-gray-100);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.auditor-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.auditor-card__name a {
  color: var(--color-primary);
}

.auditor-card__name a:hover {
  text-decoration: underline;
}

.auditor-card__bio {
  color: var(--color-gray-600);
  font-size: 0.938rem;
}

.auditor-card__sro {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.813rem;
  color: var(--color-primary-light);
}

.auditor-card__sro:hover {
  text-decoration: underline;
}

/* ===== Contact Info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-block {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 2rem;
}

.contact-block__label {
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-600);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-block__value {
  font-size: 1.125rem;
  color: var(--color-gray-900);
}

.contact-block__value a {
  color: var(--color-primary);
}

.contact-block__value a:hover {
  text-decoration: underline;
}

/* ===== Map ===== */
.map-wrapper {
  overflow: hidden;
}

.map-wrapper--full {
  width: 100%;
}

.map-wrapper iframe {
  display: block;
}

/* ===== Placeholder / Notice ===== */
.notice {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-gray-50);
  border: 1px dashed var(--color-gray-300);
  border-radius: 8px;
  color: var(--color-gray-600);
  font-size: 1.125rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: 3rem 0 0;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-600);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer__name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer__info {
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer__info a {
  color: var(--color-gray-300);
}

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

.footer__links {
  font-size: 0.875rem;
  line-height: 2;
}

.footer__links a {
  display: block;
  color: var(--color-gray-300);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.813rem;
  color: var(--color-gray-600);
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-gray-800);
}

.footer__bottom a {
  color: var(--color-gray-600);
}

.footer__bottom a:hover {
  color: var(--color-gray-300);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  /* Mobile nav */
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__item--dropdown {
    position: static;
  }

  .nav__dropdown {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 0 1rem;
  }

  .nav__item--dropdown.dropdown--open .nav__dropdown {
    display: block;
  }

  .nav__link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* Cards stack */
  .cards {
    grid-template-columns: 1fr;
  }

  .auditor-cards {
    grid-template-columns: 1fr;
  }

  .auditor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
