:root {
    --bg-header: #F9F7F5;
    --bg-main: #F2F2F2;
    --text-dark: #2F3E4E;
    --accent-primary: #D85E1C;
    --accent-secondary: #F36F21;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 0px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;

    width: auto;
    justify-content: flex-start;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 111, 33, 0.3);
}

.btn-secondary {
    background-color: var(--text-dark);
    color: #fff !important;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff !important;
    margin: 20px 0;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    filter: brightness(0.6);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 62, 78, 0.6);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
}

.audience {
    padding: 80px 0;
}

.audience-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.audience-item {
    background-color: #fff;
    padding: 20px 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    flex: 1 1 calc(33.333% - 30px);
    min-width: 200px;
    max-width: 250px;
}

.audience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.audience-item .icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.audience-item span {
    font-weight: 600;
    font-size: 1rem;
}

.services {
    padding: 80px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-main);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    background-color: var(--accent-primary);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(216, 94, 28, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 62, 78, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-primary);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.modal-content .description,
.modal-content .features {
    margin-bottom: 15px;
}

.modal-content .pros {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-content .pros li {
    margin-bottom: 8px;
}

.modal-media {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    object-fit: cover;
}

.contacts {
    padding: 80px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-info .phone {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.bin {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
}

.map-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .audience-item {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .audience-item {
        flex: 1 1 100%;
    }
}
.geo-card {
  background: linear-gradient(135deg, #0b1f3a, #1a2f4a);
  color: white;
  padding: 20px;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-family: Arial, sans-serif;
}

/* верхняя часть */
.geo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.geo-icon {
  width: 42px;
  height: 42px;
}

/* заголовок */
.geo-header h3 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.geo-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #cfd8e3;
}

/* кнопка */
.geo-button {
  display: block;
  text-align: center;
  padding: 14px 16px;
  background: #d96b2b; /* тёмно-оранжевый */
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 0.3px;

  transition: all 0.25s ease;
  box-shadow: 0 6px 15px rgba(217, 107, 43, 0.3);
}

/* анимация при наведении */
.geo-button:hover {
  background: #ff7a33;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 122, 51, 0.45);
}

/* эффект "нажатия" */
.geo-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(255, 122, 51, 0.3);
}
/* =========================================
   MOBILE ADAPTATION
========================================= */

.site-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* плавность */
img,
video {
    max-width: 100%;
    height: auto;
}

/* предотвращение растягивания */
section,
div,
header,
footer {
    max-width: 100%;
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 992px) {

    .hero-content {
        max-width: 700px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audience-item {
        flex: 1 1 calc(50% - 20px);
        max-width: unset;
    }

    .contacts-grid {
        gap: 30px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    /* ---------- HEADER ---------- */

    .header {
        padding: 12px 16px;
        min-height: 76px;
    }

    .logo {
        width: 90px;
        height: 64px;
    }

    .burger-menu {
        display: flex;
        z-index: 1200;
    }

    .burger-menu span {
        width: 28px;
        height: 3px;
        border-radius: 3px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(249, 247, 245, 0.98);

        backdrop-filter: blur(10px);

        flex-direction: column;
        align-items: center;

        padding: 25px 20px;

        gap: 20px;

        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    /* ---------- HERO ---------- */

    .hero {
        min-height: 100svh;
        height: auto;
        padding: 120px 20px 80px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* ---------- SECTIONS ---------- */

    .audience,
    .services,
    .contacts {
        padding: 60px 0;
    }

    /* ---------- CARDS ---------- */

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .audience-grid {
        gap: 18px;
    }

    .audience-item {
        flex: 1 1 100%;
        min-width: unset;
        padding: 18px;
    }

    .audience-item span {
        font-size: 0.95rem;
    }

    /* ---------- MODALS ---------- */

    .modal {
        padding: 12px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 88vh;

        padding: 24px 18px;

        border-radius: 16px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        padding-right: 35px;
    }

    .modal-content p,
    .modal-content li {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .close-btn {
        top: 12px;
        right: 16px;
        font-size: 30px;
    }

    /* ---------- CONTACTS ---------- */

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .contact-info .phone {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .geo-card {
        max-width: 100%;
        padding: 18px;
    }

    /* ---------- BUTTONS ---------- */

    .btn,
    .geo-button {
        width: 100%;
        min-height: 52px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 14px 18px;

        font-size: 0.95rem;
    }

    /* ---------- ANIMATIONS ---------- */

    .service-card:hover,
    .audience-item:hover,
    .btn:hover,
    .geo-button:hover {
        transform: none;
    }
}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px) {

    .header {
        padding: 10px 14px;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 24px 16px;
    }

    .service-card h3 {
        font-size: 1.05rem;
    }

    .modal-content {
        padding: 20px 15px;
    }

    .contact-info h2 {
        font-size: 1.7rem;
    }

    .geo-header {
        align-items: flex-start;
    }

    .geo-header h3 {
        font-size: 1rem;
    }

    .geo-header p {
        font-size: 12px;
    }
}

/* =========================================
   VERY SMALL DEVICES
========================================= */

@media (max-width: 360px) {

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn,
    .geo-button {
        font-size: 0.88rem;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }
}