/* ================= VARIABLES ================= */

:root {
    --orange: #f47c20;
    --dark: #222;
    --white: #ffffff;
    --light: #f9f9f9;
    --black: #000;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;}

/* ================= CONTAINER ================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= HEADER ================= */

.header {
    position: fixed;
    width: 100%;
    top: 0;

    /* Прозрачный белый фон с градиентом сверху вниз */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(242, 242, 242, 0.95));

    /* Размытие фона */
    backdrop-filter: blur(10px);

    /* Лёгкая тень снизу */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);

    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    color: var(--orange);
    text-decoration: none;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #FFA500; /* если хочешь оранжевый фон */
}

header .logo img {
    height: 60px;
    width: auto;
}

/* ================= NAVIGATION ================= */

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a, button {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--orange);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 3px;
    background: var(--orange);
    display: block;
}

/* ================= LANGUAGE SWITCH ================= */

.lang-switch {
    display: flex;
    border: 1px solid var(--orange);
    border-radius: 30px;
    overflow: hidden;
}

.lang-switch button {
    padding: 6px 14px;
    border: none;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    color: var(--orange);
    transition: 0.3s;
}

.lang-switch button.active {
    background: var(--orange);
    color: var(--white);
}

/* ================= HERO ================= */

.hero {
    height: 100vh;
    background: var(--orange);
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ================= BUTTON ================= */

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--white);
    color: var(--orange);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: var(--dark);
    color: var(--white);
}

/* ================= SECTIONS ================= */

.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 38px;
    color: var(--black);
}

#services .section-title {
  color: white;
}

#services {
    color: white;
}

.light-bg {
    background: var(--orange);
}

#abstinenz {
    background-color: #fff;
}

#what .section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: black;
    margin: 10px auto 0;
}



#intro .section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: black;
    margin: 10px auto 0;
}

/* ================= GRID ================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.card {
  background: white;     
  color: black;           
  border: 2px solid #000;  
  padding: 40px 20px;
  border-radius: 18px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

/* Hover эффект */
 .card:hover {
  background: orange;  
  color: #fff;
  transform: translateY(-8px);
}

/* ================= Team ================= */

.team-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

#team .section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: black;
  margin: 10px auto 0;
}

.team-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.member-text {
    flex: 1;
    font-size: 1em;
    line-height: 1.5;
}

.team-description {
    font-size: 1em;
    line-height: 1.5;
    margin-top: 20px;
    text-align: justify;
}

/* Внешний блок растягивается на весь экран и красится */
.team-section-wrapper {
    width: 100%;
    background-color: var(--orange); /* оранжевый фон на всю ширину */
    padding: 40px 0;
}

/* Внутренний блок с контентом центрированный */
.team-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
}

/* Адаптив */
@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member img {
        margin-bottom: 20px;
    }
}

/* ================= CONTACT ================= */

.contact {
  padding: 100px 20px;
  background-color: var(--orange); /* Оранжевый фон */
  min-height: 100vh;
  color: #fff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #fff;
}

.contact-form-container {
  background-color: var(--orange);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid #333;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: #fff; /* Белые поля */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  color: #000;
  transition: 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #FF4500;
}

textarea.form-control {
  resize: none;
  overflow: hidden;
  min-height: 80px;
}

.error-message {
  color: #ff4444;
  font-size: 0.875rem;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

.submit-btn {
  background-color: #fff;
  color: #FF7F50;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
  display: block;
  margin: 0 auto;
}

.submit-btn:hover {
  background-color: #000;
  color: #fff;
}

.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 3px solid #FF7F50;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-weight: 500;
}

.form-message.success {
  background-color: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
  display: block;
}

.form-message.error {
  background-color: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
  display: block;
}


#contact .section-title {
  color: white;
}


/* ================= FOOTER ================= */

.footer {
    background: #111;
    color: #fff;
    padding: 60px 8% 30px;
    font-family: 'Montserrat', sans-serif;
}

/* --- Верх футера --- */

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Левая часть */

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: #ff7a00;
}

/* Правая часть */

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-right a:hover {
    color: #ff7a00;
}

/* --- Нижняя часть --- */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ff7a00;
}

.footer-copy {
    font-size: 14px;
    opacity: 0.7;
}

/* ======================= */
/* 📱 МОБИЛЬНАЯ ВЕРСИЯ */
/* ======================= */

@media (max-width:768px) {

.footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-right {
    text-align: center;
    align-items: center;
}

.footer-socials {
    justify-content: center;
}

/* нижний блок */

.footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-links {
    justify-content: center;
    flex-wrap: wrap;
}

}

/* ================= COOKIE ================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-banner button {
    background: var(--orange);
    border: none;
    padding: 8px 16px;
    color: var(--white);
    cursor: pointer;
}

.long-text {
    margin-top: 60px;
    font-size: 17px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: white;
    text-decoration: none;
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* Анимация карточек */
.card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Плавные переходы */
a,
button {
  transition: all 0.3s ease;
}

button:hover,
a:hover {
  transform: translateY(-2px);
}

/* Плавное исчезновение cookie */
#cookieBanner {
  transition: opacity 0.4s ease;
}

/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;

    overflow-y: auto;
    padding: 50px 40px;

    border-radius: 0;
    position: relative;

    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-body h2 {
    font-family: "Playfair Display", serif;
    margin-bottom: 25px;
    text-align: center;
}

.modal-body pre {
    white-space: pre-wrap;
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    font-size: 15px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;

    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;

    transition: 0.3s ease;
}

.modal-close:hover {
    color: #e76f00;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

@media (max-width: 768px) {

    .burger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

}

html, body {
    overflow-x: hidden;
}

h1, h2, h3, h4, p, a {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}