:root {
  --primary: #0081C6; /* Морской синий (дельфин) */
  --primary-dark: #006299;
  --secondary: #F3B700; /* Теплый желтый (солнце, забота) */
  --secondary-hover: #DDA600;
  --bg-color: #F8F9FA;
  --text-main: #333333;
  --text-muted: #666666;
  --white: #FFFFFF;
  --red-alert: #E63946; /* Для антикоррупции */
  --border: #E0E0E0;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --container: 1200px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
}

/* Section Common */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(0, 129, 198, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  font-size: 32px;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo__sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

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

.nav__link--cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 20px;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--primary-dark);
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-color);
  padding: 4px;
  border-radius: 20px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Burger Menu */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.burger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-dark);
  left: 0;
  transition: var(--transition);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
}

.hero__content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--secondary);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero__title {
  font-size: 56px;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero__brand {
  color: var(--primary);
}

.hero__desc {
  font-size: 20px;
  color: #444;
  margin-bottom: 40px;
}

.hero__btns {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.stat__num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.stat__label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  animation: bounce 2s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

/* Mission Section */
.mission {
  background: var(--bg-color);
}

.mission__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.mcard {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.mcard__icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.mcard h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.mcard p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Director Preview */
.director-preview {
  padding: 100px 0;
}

.director-preview__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  background: var(--bg-color);
  border-radius: 24px;
  padding: 40px;
}

.director-preview__photo {
  flex: 0 0 400px;
  position: relative;
}

.director-preview__photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.director-preview__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.director-preview__content {
  flex: 1;
}

.director-preview__content h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.director-preview__content p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 32px;
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
}

/* Gallery Preview */
.gallery-preview {
  background: var(--white);
}

.gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.gp-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gp-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gp-item:hover img {
  transform: scale(1.05);
}

.gp-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-weight: 600;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.gp-item:hover .gp-item__overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Compliance Preview */
.compliance-preview {
  padding: 0 0 80px 0;
}

.compliance-preview__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius);
  padding: 40px;
}

.compliance-preview__icon {
  font-size: 64px;
}

.compliance-preview__content h2 {
  color: var(--red-alert);
  margin-bottom: 12px;
}

.compliance-preview__content p {
  margin-bottom: 24px;
  color: #4B5563;
}

.compliance-preview__links {
  display: flex;
  gap: 16px;
}

.compliance-preview__links .btn--primary {
  background-color: var(--red-alert);
}
.compliance-preview__links .btn--primary:hover {
  background-color: #B91C1C;
}

/* Form Section */
.quick-contact {
  background: var(--primary-dark);
  color: var(--white);
}

.quick-contact .section-title {
  color: var(--white);
}

.quick-contact .section-desc {
  color: rgba(255,255,255,0.8);
}

.quick-contact .section-tag {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  color: var(--text-main);
  box-shadow: var(--shadow-hover);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 129, 198, 0.1);
}

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-group--checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-group--checkbox label {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
}

.form-success {
  display: none;
  padding: 16px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.footer {
  background: #111827;
  color: #F9FAFB;
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__brand .logo__name {
  color: var(--white);
}

.footer__tagline {
  margin-top: 16px;
  color: #9CA3AF;
  font-size: 15px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 18px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a,
.footer__contacts a {
  color: #D1D5DB;
  transition: var(--transition);
}

.footer ul a:hover,
.footer__contacts a:hover {
  color: var(--primary);
}

.footer__contacts p {
  color: #D1D5DB;
  margin-bottom: 12px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #374151;
  color: #9CA3AF;
  font-size: 14px;
}

.footer__langs {
  display: flex;
  gap: 8px;
}

.lang-btn-sm {
  background: transparent;
  color: #D1D5DB;
  border: 1px solid #4B5563;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn-sm:hover {
  background: #374151;
  color: var(--white);
}

/* ----------------- MEDIA QUERIES ----------------- */
@media (max-width: 1024px) {
  .hero__title { font-size: 46px; }
  .director-preview__inner { flex-direction: column; text-align: center; }
  .director-preview__photo { flex: 0 0 auto; margin-bottom: 20px; }
  .director-preview__content p { border-left: none; padding-left: 0; }
  .gallery-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: block; }
  
  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  .nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
  }

  .hero__title { font-size: 36px; }
  .hero__btns { flex-direction: column; }
  .hero__stats { flex-direction: column; gap: 20px; text-align: center; }
  
  .form-row { grid-template-columns: 1fr; }
  
  .compliance-preview__inner { flex-direction: column; text-align: center; }
  
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__bottom { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__badge { font-size: 11px; }
  .hero__title { font-size: 28px; }
  .hero__desc { font-size: 16px; }
  .gallery-preview__grid { grid-template-columns: 1fr; }
  .gp-item--large { grid-column: span 1; }
}
