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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s;
    z-index: 2000;

}

.btn-customize:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: unset;
}

.logo img {
    width: 40px;
    height: 40px;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #6b4e9e;
}

/* Hero Section */
.hero {
    padding: 0 0 40px;
    background: #ffffff;
}

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

.hero h1 {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-underline {
    width: 200px;
    height: 16px;
    background: rgba(168, 198, 124, 1);
    margin-bottom: 30px;
}

.hero-text {
    background: #2a2a2a;
    color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.hero-text p {
    font-size: 14px;
    line-height: 1.8;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
}

.btn-primary {
    background: rgba(168, 198, 124, 1);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0px 4px 20px 0px rgba(168, 198, 124, 1);

}

.btn-primary:hover {
    background: #a5c595;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 40px 0;
    background: #ffffff;
}

.about h2 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
}

.section-underline {
    width: 200px;
    height: 16px;
    background: rgba(168, 198, 124, 1);
    margin: 0 auto 30px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
}

/* Pillars Section */
.pillars {
    padding: 60px 0;
    background: rgba(168, 198, 124, 0.3);
}

.pillars h2 {
    font-size: 60px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
}

.pillars .section-underline {
    margin: 0 auto 20px;
}

.pillars-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 15px;
    line-height: 1.8;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pillar-card {
    background: #2a2a2a;
    color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.pillar-number {
    background: rgba(168, 198, 124, 1);
    color: #1a1a1a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.pillar-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pillar-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}


.pillar-icon img {
    width: 40px;
    height: 40px;
}

.pillars .btn-primary {
    display: block;
    margin: 0 auto;
}

/* Stats Section */
.stats {
    padding: 80px 0 40px;
    background: #ffffff;
}

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

.stats-text h2 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
}

.stats-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.stats-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.stats-image img {
    width: 100%;
    max-width: 300px;
}

.stats-numbers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    background: #2a2a2a;
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon img {
    width: 30px;
    height: 30px;
}

.stat-value h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-value p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Why Choose Section */
.why-choose {
    padding: 40px 0 80px;
    background: #ffffff;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.why-image img {
    width: 100%;
}

.why-text h2 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
}

.why-text > p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.why-card {
    background: #2a2a2a;
    color: #ffffff;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: start;
    gap: 15px;
}

.why-icon img {
    width: 30px;
    height: 30px;
}

.why-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-content p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* Contacts Section */
.contacts {
    padding: 60px 0;
    background: rgba(168, 198, 124, 0.3);
    text-align: center;
    position: relative;
}

.contacts .container {
  position: relative;
}

.contacts .container::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  max-height: 50%;
  background: url(/wp-content/themes/techfile_vmhg0krl/./images/code.png) no-repeat center;
  background-size: contain;
  z-index: -1;
}

.contacts h2 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
}

.contacts .section-underline {
    margin: 0 auto 20px;
}

.contacts .container > p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-info {
    background: #2a2a2a;
    color: #ffffff;
    padding: 30px 40px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 50px;
}

.contact-icon {
    margin-bottom: 15px;
}

.contact-icon img {
    width: 30px;
    height: 30px;
}

.contact-details p {
    font-size: 14px;
    margin: 5px 0;
}

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

.contact-mascot img {
    width: 100%;
    max-width: 400px;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 40px 0 20px;
    border-top: 1px solid #e0e0e0;
}

footer .container {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-decoration: unset;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    background: rgba(168, 198, 124, 1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #a5c595;
}

.social-links img {
    width: 20px;
    height: 20px;
}

.copyright {
    font-size: 13px;
    color: #666;
}

/* Games Page */
.games-hero {
    padding: 80px 0;
    background: #ffffff;
}

.games-hero .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.games-hero h1 {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.games-description {
    margin-top: 30px;
}

.games-description p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.games-hero-image img {
    width: 100%;
    max-width: 400px;
}

/* Games Grid */
.games-grid-section {
    padding: 0 0 80px;
    background: #ffffff;
}

.games-grid {
    display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.game-card {
  display: flex;
  align-items: center;
  justify-content: center;

    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
     aspect-ratio: 1 / 1;
    transition: transform 0.3s, box-shadow 0.3s;
}
/* Перші дві картки займають по одній колонці і 2 рядки */
.game-card:nth-child(1) {
  grid-column: span 2; /* 2 стовпці */
  grid-row: span 2;    /* 2 рядки */
}
.game-card:nth-child(2) {
   grid-column: span 2; /* 2 стовпці */
  grid-row: span 2;    /* 2 рядки */
}

/* Наступні чотири у дві колонки (3 і 4) */
.game-card:nth-child(3) { grid-column: 5; grid-row: 1; }
.game-card:nth-child(4) { grid-column: 6; grid-row: 1; }
.game-card:nth-child(5) { grid-column: 5; grid-row: 2; }
.game-card:nth-child(6) { grid-column: 6; grid-row: 2; }
.game-card::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(168, 198, 124, 1);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-card h3 {
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    position: absolute;
    padding: 12px;
    color: #000;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover h3,
.game-card:hover::before {
  opacity: 1;
}

/* Game Page */
.game-page-hero {
    padding: 80px 0;
    background: #ffffff;
}

.game-page-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.game-page-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-page-text h1 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
}

.section-underline.green {
    background: rgba(168, 198, 124, 1);
}

.game-page-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Game Features */
.game-features {
    padding: 80px 0;
    background: #2a2a2a;
    color: #ffffff;
}

.game-features h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.game-features .section-underline {
    margin-bottom: 30px;
    background: rgba(168, 198, 124, 1);
}

.game-features .container {
  display: flex;
  gap: 30px;
}

@media (max-width:768px){
   .game-features .container {
    flex-direction: column;
   } 
}

.features-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.8;
}

.game-features-image {
    margin: 40px 0;
        max-width: 260px;
}

.game-features-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container,
    .about-content,
    .stats-content,
    .games-hero .container,
    .game-page-content {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-card:nth-child(1) {
      grid-column: span 2;
      grid-row: span 2;
    }

    .game-card:nth-child(2) {
      grid-column: span 2;
      grid-row: span 1;
    }
    .game-card:nth-child(3) {
      grid-column: span 1;
      grid-row: span 1;
    }
    .game-card:nth-child(4) {
      grid-column: span 1;
      grid-row: span 1;
    }
    .game-card:nth-child(5) {
      grid-column: span 1;
      grid-row: span 1;
    }
    .game-card:nth-child(6) {
      grid-column: span 1;
      grid-row: span 1;
    }

    .why-choose-content {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-image img {
      max-width: 600px;
    }
}

@media (max-width: 768px) {
    nav {
        gap: 20px;
    }

    header .container {
      flex-direction: column;
    }

    .hero h1,
    .games-hero h1,
    .game-page-text h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 50px !important;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }


    

    .cookie-content {
        padding: 30px 20px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .games-hero h1,
    .game-page-text h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 42px !important;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

.cookie-modal.hidden {
    display: none;
}

.cookie-content {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    border: 3px solid rgba(168, 198, 124, 1);
    margin-left: auto;
    margin-right: auto;
    z-index: 2000;
    position: relative;
}

.cookie-icon {
    margin-bottom: 20px;
}

.cookie-icon img {
    width: 80px;
    height: 80px;
}

.cookie-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.cookie-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #d0d0d0;
}

.btn-accept {
    background: rgba(168, 198, 124, 1);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    transition: background 0.3s;
    letter-spacing: 0.5px;
    z-index: 2000;
}

.btn-accept:hover {
    background: #a5c595;
}

.btn-customize {
  background: transparent;
    color: rgba(168, 198, 124, 1);
    border: 2px solid rgba(168, 198, 124, 1);
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    z-index: 2000;
}

.btn-accept:hover {
    background: #a5c595;
    color: #1a1a1a;
}

section h2 {
  line-height: 1.1;
}

@media (max-width:768px){
    .game-features h2 {
      word-break: break-word;
    }
}

.policy {
  padding-top: 60px;
  padding-bottom: 60px;
}

.policy h1 {
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 900;
}

.policy-content a {
  color: inherit;
  text-decoration: none;
}