/* ===========================================
   ЮРИДИЧЕСКАЯ КОМПАНИЯ - ОСНОВНЫЕ СТИЛИ
   =========================================== */

/* CSS Variables */
:root {
  /* Цветовая палитра */
  --color-bg: #C8E0F4;
  --color-white: #FFFFFF;
  --color-accent: #0080FF;
  --color-accent-hover: #0066CC;
  --color-text: #000000;
  --color-text-light: #333333;
  --color-gray: #E8E8E8;
  --color-gray-dark: #666666;
  
  /* Типографика */
  --font-primary: 'Montserrat', 'PT Sans', sans-serif;
  --font-size-h1: 48px;
  --font-size-h2: 36px;
  --font-size-h3: 26px;
  --font-size-body: 17px;
  --font-size-small: 14px;
  --line-height: 1.7;
  
  /* Отступы */
  --section-padding: 80px;
  --container-max: 1200px;
  --card-padding: 35px;
  --border-radius: 8px;
  
  /* Тени */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-button: 0 4px 12px rgba(0,128,255,0.3);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Диагональный фоновый паттерн */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(232, 232, 232, 0.3) 40px,
    rgba(232, 232, 232, 0.3) 41px
  );
  pointer-events: none;
  z-index: -1;
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

/* ===========================================
   ТИПОГРАФИКА
   =========================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -1px;
}

h2 {
  font-size: var(--font-size-h2);
  text-align: center;
  margin-bottom: 50px;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
}

p {
  margin-bottom: 20px;
}

p:last-child {
  margin-bottom: 0;
}

/* ===========================================
   КОНТЕЙНЕР И СЕКЦИИ
   =========================================== */

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

section {
  padding: var(--section-padding) 0;
}

/* ===========================================
   КАРТОЧКИ
   =========================================== */

.card {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

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

/* ===========================================
   КНОПКИ
   =========================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

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

.btn:focus {
  outline: 3px solid rgba(0, 128, 255, 0.4);
  outline-offset: 2px;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

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

.btn--large {
  padding: 18px 40px;
  font-size: 18px;
}

/* ===========================================
   HEADER
   =========================================== */

.header {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.header__logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.header__logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-gray-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav__link {
  padding: 10px 18px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--color-accent);
  background: rgba(0, 128, 255, 0.08);
}

.nav__link.active {
  color: var(--color-accent);
  background: rgba(0, 128, 255, 0.1);
}

/* Header Right */
.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
}

.header__phone svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent);
}

.header__phone:hover {
  color: var(--color-accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
  padding: 100px 0;
  text-align: center;
}

.hero__logo {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  margin: 0 auto 40px;
  display: flex;
  background: none;
  align-items: center;
  justify-content: center;
}

.hero__logo svg {
  width: 748px;
  height: 748px;
  fill: white;
}

/* Добавьте это для PNG изображений */
.hero__logo img {
  width: 748px;
  height: 748px;
  object-fit: contain;
}


.hero h1 {
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================
   PAGE BANNER
   =========================================== */

.page-banner {
  background: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(200, 224, 244, 0.3) 0%, transparent 100%);
  pointer-events: none;
}

.page-banner h1 {
  margin-bottom: 15px;
  position: relative;
}

.page-banner__subtitle {
  font-size: 19px;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: var(--font-size-small);
  position: relative;
}

.breadcrumbs a {
  color: var(--color-gray-dark);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  color: var(--color-text);
}

/* ===========================================
   ABOUT SECTION (краткое)
   =========================================== */

.about-short {
  background: var(--color-white);
}

.about-short__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-short__text {
  font-size: 18px;
  margin-bottom: 30px;
}

/* ===========================================
   ADVANTAGES SECTION
   =========================================== */

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.advantage-card {
  text-align: center;
  padding: 40px 25px;
}

.advantage-card__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 128, 255, 0.1), rgba(0, 128, 255, 0.05));
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-card__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.advantage-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===========================================
   STATS SECTION
   =========================================== */

.stats {
  background: linear-gradient(135deg, var(--color-accent) 0%, #004499 100%);
  padding: 70px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item__number {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-item__label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ===========================================
   BUSINESS PREVIEW SECTION
   =========================================== */

.business-preview {
  background: var(--color-white);
}

.business-preview__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.business-preview__text h2 {
  text-align: left;
  margin-bottom: 25px;
}

.business-preview__text p {
  margin-bottom: 25px;
  font-size: 17px;
}

.business-preview__image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.business-preview__image img {
  width: 100%;
  filter: grayscale(100%);
  transition: var(--transition);
}

.business-preview__image:hover img {
  filter: grayscale(80%);
}

/* ===========================================
   CTA SECTION
   =========================================== */

.cta {
  background: var(--color-white);
  text-align: center;
}

.cta h2 {
  margin-bottom: 30px;
}

.cta p {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================
   ABOUT PAGE - История
   =========================================== */

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

.history__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.history__text {
  font-size: 17px;
}

.history__image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.history__image img {
  width: 100%;
  filter: grayscale(100%);
}

/* ===========================================
   VALUES SECTION
   =========================================== */

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

.value-card {
  text-align: center;
  padding: 40px 30px;
}

.value-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 128, 255, 0.1);
  border-radius: 12px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-accent);
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.value-card p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ===========================================
   TEAM SECTION
   =========================================== */

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

.team__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.team__description {
  font-size: 18px;
  margin-bottom: 40px;
}

.team__image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.team__image img {
  width: 100%;
  filter: grayscale(100%);
}

/* ===========================================
   CLIENTS SECTION
   =========================================== */

.clients__text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 18px;
}

.clients__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.clients__logos span {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-gray-dark);
  opacity: 0.6;
}

/* ===========================================
   BUSINESS PAGE - Approach
   =========================================== */

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

.approach__content {
  max-width: 900px;
  margin: 0 auto;
}

.approach__text {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.step-card {
  display: flex;
  gap: 20px;
  padding: 30px;
}

.step-card__number {
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-card__content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-card__content p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ===========================================
   TARGET AUDIENCE
   =========================================== */

.audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.audience-card {
  text-align: center;
  padding: 35px 20px;
}

.audience-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 128, 255, 0.1);
  border-radius: 12px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-accent);
}

.audience-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ===========================================
   PRACTICE AREAS
   =========================================== */

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

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

.practice-card {
  padding: 35px;
  border: 1px solid var(--color-gray);
  background: var(--color-white);
}

.practice-card__icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, rgba(0, 128, 255, 0.15), rgba(0, 128, 255, 0.05));
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-card__icon svg {
  width: 26px;
  height: 26px;
  fill: var(--color-accent);
}

.practice-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ===========================================
   PROCESS SECTION
   =========================================== */

.process__timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray);
}

.process-step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step__number {
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step__content {
  background: var(--color-white);
  padding: 25px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  flex-grow: 1;
}

.process-step__content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.process-step__content p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ===========================================
   CASES SECTION
   =========================================== */

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

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-card {
  padding: 40px;
  border-left: 4px solid var(--color-accent);
}

.case-card__label {
  display: inline-block;
  background: rgba(0, 128, 255, 0.1);
  color: var(--color-accent);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.case-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.case-card p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ===========================================
   CONTACTS PAGE
   =========================================== */

.contacts-info {
  background: var(--color-white);
}

.contacts-info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 50px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 35px;
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-accent), #004499);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

.contact-card__content h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-card__content a,
.contact-card__content p {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.contact-card__content a:hover {
  color: var(--color-accent);
}

.contacts-cta {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-gray);
}

.contacts-cta p {
  font-size: 18px;
  margin-bottom: 25px;
}

.contacts-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===========================================
   MAP SECTION
   =========================================== */

.map-placeholder {
  background: var(--color-gray);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  margin-top: 50px;
}

.map-placeholder p {
  color: var(--color-gray-dark);
  font-size: 16px;
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
  background: #1a1a1a;
  color: var(--color-white);
  padding: 60px 0 30px;
}

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

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

.footer__logo-icon {
  width: 45px;
  height: 45px;
  
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.footer__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: var(--transition);
}

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

.footer__contacts {
  text-align: right;
}

.footer__contacts a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 8px;
  transition: var(--transition);
}

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

.footer__contacts p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0 0 8px 0;
}

.footer__legal {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  margin: 0;
}

/* ===========================================
   SCROLL TO TOP BUTTON
   =========================================== */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* Grayscale images */
.img-grayscale {
  filter: grayscale(100%);
  transition: var(--transition);
}

.img-grayscale:hover {
  filter: grayscale(70%);
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 20px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}
