@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #8B7D6B;
  --secondary-color: #D2B48C;
  --primary-hover: #A0522D;
  --secondary-hover: #CD853F;

  --text-primary: #2F2F2F;
  --text-secondary: #F5F5DC;
  --text-inverted: #8B7355;

  --background-color: #FDF5E6;
  --secondary-background: #FFF8DC;
  --accordion-active: #DEB887;

  --border-radius-primary: 16px;
  --border-radius-secondary: 24px;

  --font-family: "Libre Franklin", sans-serif;
  --second-family: "Libre Franklin", sans-serif;
  
  --shadow-soft: 0 8px 32px rgba(139, 125, 107, 0.1);
  --shadow-medium: 0 12px 40px rgba(139, 125, 107, 0.15);
  --gradient-warm: linear-gradient(135deg, #FDF5E6 0%, #FFF8DC 100%);
  --gradient-accent: linear-gradient(135deg, #D2B48C 0%, #DEB887 100%);
}

body {
  margin: 0;
  width: 100%;
  background-color: var(--background-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.6;
}

body:has(.mobile-menu-active) {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

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

section {
  overflow-x: hidden;
}

.title {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 42px;
  line-height: 130%;
  letter-spacing: -0.02em;
  color: var(--text-inverted);
  margin-bottom: 24px;
}

.subtitle {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 26px;
  line-height: 140%;
  letter-spacing: -0.01em;
  color: var(--text-inverted);
  margin-bottom: 16px;
}

.descr {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.container-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.primary-btn {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text-secondary);

  display: inline-block;
  background: var(--gradient-accent);
  padding: 18px 40px;
  border-radius: var(--border-radius-primary);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.primary-btn:hover::before {
  left: 100%;
}

.primary-btn:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  color: var(--text-secondary);
}

.secondary-btn {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--text-primary);

  display: inline-block;
  background: transparent;
  padding: 18px 40px;
  border-radius: var(--border-radius-primary);
  border: 2px solid var(--secondary-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-accent);
  transition: width 0.4s ease;
  z-index: -1;
}

.secondary-btn:hover::before {
  width: 100%;
}

.secondary-btn:hover {
  text-decoration: none;
  color: var(--text-secondary);
  border-color: var(--secondary-color);
}

.terms-privacy {
  padding: 120px 0;
}

.terms-privacy .title {
  margin-bottom: 40px;
}

.terms-privacy .subtitle {
  margin: 25px 0;
}

.thank-you-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  padding-top: 200px;
  text-align: center;
}

.thank-you-container p {
  font-size: 1.3rem;
  color: var(--text-primary);
  max-width: 600px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-inverted);
  transition: all 0.3s ease;
  font-family: var(--second-family);
  font-size: 24px;
  font-weight: 600;
}

.logo:hover {
  color: var(--primary-hover);
  transform: scale(1.05);
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
}

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

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 175%;
  letter-spacing: 0.02em;
  color: var(--primary-color);

  text-decoration: none;
  position: relative;
  padding: 8px 16px;
  transition: all 0.3s ease-in-out;
  border-radius: var(--border-radius-primary);
}

.link:hover {
  color: var(--primary-hover);
  background: var(--secondary-background);
  transform: translateX(5px);
}

.link svg {
  width: 24px;
  height: 16px;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.link:hover svg {
  transform: translateX(8px);
}

@media screen and (max-width: 1240px) {
  .container {
    padding: 0 20px;
  }

  .title {
    font-size: 36px;
  }

  .title span {
    font-weight: 600;
    font-size: 28px;
  }

  .descr {
    font-weight: 400;
    font-size: 16px;
  }

  .section-name {
    font-size: 18px;
  }

  .primary-btn {
    font-size: 16px;
    padding: 16px 32px;
  }

  .secondary-btn {
    font-size: 16px;
    padding: 16px 32px;
  }

  .terms-privacy {
    padding: 100px 0 60px;
  }

  .terms-privacy .title {
    margin-bottom: 30px;
  }

  .terms-privacy .subtitle {
    margin: 25px 0;
  }
}
